diff options
| author | xty <aura7988@outlook.com> | 2025-08-19 22:31:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 23:31:02 +0900 |
| commit | f9d7877d8b01e58c53c5b7f746f02c8ab81b17d6 (patch) | |
| tree | 18dbc540c04d051adb379a20ab9b2c9123037e6b /shell | |
| parent | 9fe99765919db8ce4fa65508d4acce3b6227f23c (diff) | |
| download | fzf-f9d7877d8b01e58c53c5b7f746f02c8ab81b17d6.tar.gz | |
[bash 3] Fix CTRL-T and ALT-C to preserve the last yank (#4496)
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/key-bindings.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index 50edecef..b83d26a0 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -125,7 +125,7 @@ bind -m emacs-standard '"\C-z": vi-editing-mode' if (( BASH_VERSINFO[0] < 4 )); then # CTRL-T - Paste the selected file path into the command line if [[ "${FZF_CTRL_T_COMMAND-x}" != "" ]]; then - bind -m emacs-standard '"\C-t": " \C-b\C-k \C-u`__fzf_select__`\e\C-e\er\C-a\C-y\C-h\C-e\e \C-y\ey\C-x\C-x\C-f"' + bind -m emacs-standard '"\C-t": " \C-b\C-k \C-u`__fzf_select__`\e\C-e\er\C-a\C-y\C-h\C-e\e \C-y\ey\C-x\C-x\C-f\C-y\ey\C-_"' bind -m vi-command '"\C-t": "\C-z\C-t\C-z"' bind -m vi-insert '"\C-t": "\C-z\C-t\C-z"' fi @@ -150,7 +150,7 @@ fi # ALT-C - cd into the selected directory if [[ "${FZF_ALT_C_COMMAND-x}" != "" ]]; then - bind -m emacs-standard '"\ec": " \C-b\C-k \C-u`__fzf_cd__`\e\C-e\er\C-m\C-y\C-h\e \C-y\ey\C-x\C-x\C-d"' + bind -m emacs-standard '"\ec": " \C-b\C-k \C-u`__fzf_cd__`\e\C-e\er\C-m\C-y\C-h\e \C-y\ey\C-x\C-x\C-d\C-y\ey\C-_"' bind -m vi-command '"\ec": "\C-z\ec\C-z"' bind -m vi-insert '"\ec": "\C-z\ec\C-z"' fi |
