mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 13:23:53 +08:00
Make meta-backspace less aggressive about what it deletes
This commit is contained in:
parent
2ba92f92b7
commit
6b35250099
|
@ -117,6 +117,7 @@ static const wchar_t * const name_arr[] =
|
||||||
L"kill-whole-line",
|
L"kill-whole-line",
|
||||||
L"kill-word",
|
L"kill-word",
|
||||||
L"backward-kill-word",
|
L"backward-kill-word",
|
||||||
|
L"backward-kill-path-component",
|
||||||
L"dump-functions",
|
L"dump-functions",
|
||||||
L"history-token-search-backward",
|
L"history-token-search-backward",
|
||||||
L"history-token-search-forward",
|
L"history-token-search-forward",
|
||||||
|
@ -200,6 +201,7 @@ static const wchar_t code_arr[] =
|
||||||
R_KILL_WHOLE_LINE,
|
R_KILL_WHOLE_LINE,
|
||||||
R_KILL_WORD,
|
R_KILL_WORD,
|
||||||
R_BACKWARD_KILL_WORD,
|
R_BACKWARD_KILL_WORD,
|
||||||
|
R_BACKWARD_KILL_PATH_COMPONENT,
|
||||||
R_DUMP_FUNCTIONS,
|
R_DUMP_FUNCTIONS,
|
||||||
R_HISTORY_TOKEN_SEARCH_BACKWARD,
|
R_HISTORY_TOKEN_SEARCH_BACKWARD,
|
||||||
R_HISTORY_TOKEN_SEARCH_FORWARD,
|
R_HISTORY_TOKEN_SEARCH_FORWARD,
|
||||||
|
|
|
@ -84,7 +84,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
|
||||||
bind \cc 'commandline ""'
|
bind \cc 'commandline ""'
|
||||||
bind \cu backward-kill-line
|
bind \cu backward-kill-line
|
||||||
bind \ed kill-word
|
bind \ed kill-word
|
||||||
bind \cw backward-kill-word
|
bind \cw backward-kill-path-component
|
||||||
bind \ed 'set -l cmd (commandline); if test -z "$cmd"; dirh; commandline -f repaint; else; commandline -f kill-word; end'
|
bind \ed 'set -l cmd (commandline); if test -z "$cmd"; dirh; commandline -f repaint; else; commandline -f kill-word; end'
|
||||||
bind \cd delete-or-exit
|
bind \cd delete-or-exit
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user