File tree 8 files changed +17
-1
lines changed
8 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 45
45
# shellcheck disable=2046,2016,2090,2086
46
46
gf_fzf_one -m \
47
47
--header " $BRANCH_HEADER " \
48
+ --bind ' click-header:reload(git fuzzy helper branch_menu_content)' \
49
+ --bind ' backward-eof:reload(git fuzzy helper branch_menu_content)' \
48
50
--bind " $BRANCH_CHECKOUT_BINDING " \
49
51
--bind " $( lowercase " $GIT_FUZZY_BRANCH_CHECKOUT_FILE_KEY " ) " ' :execute(git fuzzy helper branch_checkout_files {1})' \
50
52
--bind " $( lowercase " $GIT_FUZZY_BRANCH_DELETE_BRANCH_KEY " ) :$GF_BRANCH_DELETE_BINDING " \
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ gf_fzf_diff_checkout() {
22
22
--header-lines=2 \
23
23
--header " $GF_DIFF_CHECKOUT_HEADER " \
24
24
--preview " $PREVIEW_COMMAND " \
25
+ --bind " click-header:reload(git fuzzy helper diff_direct_menu_content {q} '$1 ' '$2 ')" \
26
+ --bind " backward-eof:reload(git fuzzy helper diff_direct_menu_content {q} '$1 ' '$2 ')" \
25
27
--bind " change:reload($RELOAD_COMMAND )" \
26
28
--bind " enter:execute-silent(git fuzzy helper diff_checkout_file '$1 ' {+})+down"
27
29
}
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ gf_fzf_diff_direct() {
21
21
--header-lines=2 \
22
22
--header " $GF_DIFF_DIRECT_HEADER " \
23
23
--preview " $PREVIEW_COMMAND " \
24
+ --bind " click-header:reload(git fuzzy helper diff_direct_menu_content {q} $PARAMETERS_QUOTED )" \
25
+ --bind " backward-eof:reload(git fuzzy helper diff_direct_menu_content {q} $PARAMETERS_QUOTED )" \
24
26
--bind " change:reload($RELOAD_COMMAND )"
25
27
}
26
28
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ gf_fzf_diff_select() {
23
23
--with-nth=2.. \
24
24
--header " $GF_DIFF_HEADER " \
25
25
--preview " $GF_DIFF_PREVIEW " \
26
+ --bind ' click-header:reload(git fuzzy helper diff_menu_content)' \
27
+ --bind ' backward-eof:reload(git fuzzy helper diff_menu_content)' \
26
28
--bind ' enter:execute([ {1} != "nothing" ] && git fuzzy helper diff_select {+2})'
27
29
}
28
30
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ gf_fzf_log() {
32
32
--header-lines=2 \
33
33
--header " $GF_LOG_HEADER " \
34
34
--preview ' git fuzzy helper log_preview_content {..} {q} {+..}' \
35
+ --bind " click-header:reload(git fuzzy helper log_menu_content {q} $PARAMS_FOR_SUBSTITUTION )" \
36
+ --bind " backward-eof:reload(git fuzzy helper log_menu_content {q} $PARAMS_FOR_SUBSTITUTION )" \
35
37
--bind " change:reload(git fuzzy helper log_menu_content {q} $PARAMS_FOR_SUBSTITUTION )" \
36
38
--bind " $( lowercase " $GIT_FUZZY_LOG_COMMIT_KEY " ) :execute(git fuzzy helper log_open_diff commit {..})" \
37
39
--bind " $( lowercase " $GIT_FUZZY_LOG_WORKING_COPY_KEY " ) :execute(git fuzzy helper log_open_diff working_copy {..})" \
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ gf_fzf_reflog() {
32
32
--header " $GF_REFLOG_HEADER " \
33
33
--preview ' git fuzzy helper reflog_preview_content {1} {q} {+..}' \
34
34
--bind " change:reload(git fuzzy helper reflog_menu_content {q} $PARAMS_FOR_SUBSTITUTION )" \
35
+ --bind " click-header:reload(git fuzzy helper reflog_menu_content {q} $PARAMS_FOR_SUBSTITUTION )" \
36
+ --bind " backward-eof:reload(git fuzzy helper reflog_menu_content {q} $PARAMS_FOR_SUBSTITUTION )" \
35
37
--bind " $( lowercase " $GIT_FUZZY_REFLOG_COMMIT_KEY " ) :execute(git fuzzy diff {1}^ {1})" \
36
38
--bind " $( lowercase " $GIT_FUZZY_REFLOG_WORKING_COPY_KEY " ) :execute(git fuzzy diff {1})" \
37
39
--bind " $( lowercase " $GIT_FUZZY_REFLOG_MERGE_BASE_KEY " ) :" ' execute(git fuzzy diff "$(git merge-base "' " $GF_BASE_BRANCH " ' " {1})" {1})'
Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ gf_fzf_stash() {
23
23
--header-lines=2 \
24
24
--header " $GF_STASH_HEADER " \
25
25
--preview ' git fuzzy helper stash_preview_content {1}' \
26
+ --bind ' click-header:reload(git fuzzy helper stash_menu_content ' " $( quote_params " $@ " ) " ' )' \
27
+ --bind ' backward-eof:reload(git fuzzy helper stash_menu_content ' " $( quote_params " $@ " ) " ' )' \
26
28
--bind " $( lowercase " $GIT_FUZZY_DROP_KEY " ) :execute(git fuzzy helper stash_drop {1})+reload(git fuzzy helper stash_menu_content)" \
27
29
--bind " $( lowercase " $GIT_FUZZY_POP_KEY " ) :execute(git fuzzy helper stash_pop {1})+reload(git fuzzy helper stash_menu_content)" \
28
30
--bind " $( lowercase " $GIT_FUZZY_APPLY_KEY " ) :execute(git fuzzy helper stash_apply {1})+reload(git fuzzy helper stash_menu_content)"
29
31
}
30
32
31
33
gf_stash () {
32
34
# NB: first parameter is the "query", which is empty right now
33
- git fuzzy helper stash_menu_content " $@ " | gf_fzf_stash
35
+ git fuzzy helper stash_menu_content " $@ " | gf_fzf_stash " $@ "
34
36
}
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ gf_fzf_status() {
32
32
--expect=" $( lowercase " $GIT_FUZZY_STATUS_EDIT_KEY " ) ,$( lowercase " $GIT_FUZZY_STATUS_COMMIT_KEY " ) ,$( lowercase " $GIT_FUZZY_STATUS_ADD_PATCH_KEY " ) " \
33
33
--nth=2 \
34
34
--preview ' git fuzzy helper status_preview_content {1} {2} {4}' \
35
+ --bind ' click-header:reload(git fuzzy helper status_menu_content)' \
36
+ --bind ' backward-eof:reload(git fuzzy helper status_menu_content)' \
35
37
--bind " $( lowercase " $GIT_FUZZY_STATUS_AMEND_KEY " ) :execute-silent(git fuzzy helper status_amend {+2..})+down+$RELOAD " \
36
38
--bind " $( lowercase " $GIT_FUZZY_STATUS_ADD_KEY " ) :execute-silent(git fuzzy helper status_add {+2..})+down+$RELOAD " \
37
39
--bind " $( lowercase " $GIT_FUZZY_STATUS_RESET_KEY " ) :execute-silent(git fuzzy helper status_reset {+2..})+down+$RELOAD " \
You can’t perform that action at this time.
0 commit comments