diff --git a/conf.d/10_key_bindings.fish b/conf.d/10_key_bindings.fish index 5911983..450cd36 100644 --- a/conf.d/10_key_bindings.fish +++ b/conf.d/10_key_bindings.fish @@ -1,10 +1,18 @@ function fish_user_key_bindings + # Word movement bind ctrl-right forward-word bind ctrl-left backward-word - bind alt-backspace backward-kill-word + + # Deletes a standard word (matches the movement of ctrl-left/right) + bind ctrl-backspace backward-kill-word + + # Deletes "more" - a big word (ignores punctuation, stops only at spaces) + bind alt-backspace backward-kill-bigword + bind shift-backspace backward-kill-bigword + + # Your other existing bindings bind alt-d kill-word bind ctrl-w backward-kill-path-component bind alt-. history-token-search-backward - bind alt-s sudo bind ctrl-x,ctrl-e edit_command_buffer end