Skip to content

Commit

Permalink
feat: add change:first bind to view_history_commands function
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart committed Mar 22, 2024
1 parent 456960a commit ea40fbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gh-find-code
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ view_history_commands() {
history_command=$'command tail -r "$gh_find_code_history" | command nl -n ln -w 3 -s "\t"'
selection=$(
: | fzf_basic_style \
--bind "change:first" \
--bind "start:execute-silent(echo \${PPID-} >>$store_ppid)+reload:$history_command" \
--bind "ctrl-d:reload:grep --fixed-strings --line-regexp --invert-match {2..} $gh_find_code_history >$store_gh_find_code_history_tmp; mv $store_gh_find_code_history_tmp $gh_find_code_history; $history_command" \
--bind 'ctrl-h:abort' \
Expand Down

0 comments on commit ea40fbe

Please sign in to comment.