Commits

Anonymous committed 6b35250

Make meta-backspace less aggressive about what it deletes

Comments (0)

Files changed (2)

     L"kill-whole-line",
     L"kill-word",
     L"backward-kill-word",
+    L"backward-kill-path-component",
     L"dump-functions",
     L"history-token-search-backward",
     L"history-token-search-forward",
     R_KILL_WHOLE_LINE,
     R_KILL_WORD,
     R_BACKWARD_KILL_WORD,
+    R_BACKWARD_KILL_PATH_COMPONENT,
     R_DUMP_FUNCTIONS,
     R_HISTORY_TOKEN_SEARCH_BACKWARD,
     R_HISTORY_TOKEN_SEARCH_FORWARD,

share/functions/fish_default_key_bindings.fish

 	bind \cc 'commandline ""'
 	bind \cu backward-kill-line
 	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 \cd delete-or-exit