Skip to content

Commit

Permalink
Make todo command possible to take query from CLI
Browse files Browse the repository at this point in the history
Want this when addressing GH-757
  • Loading branch information
kachick committed Aug 24, 2024
1 parent d82cb84 commit 73d723b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/todo/todo.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# open bat with line number in preview: https://github.com/sharkdp/bat/issues/1185#issuecomment-1301473901
# shellcheck disable=SC2016
git grep --perl-regexp --line-number --column --color=always '\b(?<=TODO|FIXME|BUG)\b\S+' |
fzf --ansi --delimiter : --nth 4.. \
fzf --ansi --delimiter : --nth 4.. --query "$@" \
--preview 'bat {1} --color=always --highlight-line={2}' --preview-window='~3,+{2}+3/4' \
--bind 'enter:become(command "$EDITOR" {1}:{2}:{3})'

0 comments on commit 73d723b

Please sign in to comment.