diff --git a/.config/fish/functions/fish_user_key_bindings.fish b/.config/fish/functions/fish_user_key_bindings.fish index 752c39f8..ef21e86f 100755 --- a/.config/fish/functions/fish_user_key_bindings.fish +++ b/.config/fish/functions/fish_user_key_bindings.fish @@ -16,4 +16,19 @@ function fish_user_key_bindings bind l 'set fish_cursor_end_mode exclusive' forward-single-char forward-word backward-char 'set fish_cursor_end_mode inclusive' bind L 'set fish_cursor_end_mode exclusive' forward-single-char forward-bigword backward-char 'set fish_cursor_end_mode inclusive' + bind -M insert ctrl-n accept-autosuggestion + + bind d,i kill-line + bind d,m backward-kill-line + bind d,l kill-word + bind d,L kill-bigword + bind d,h backward-jump-till and repeat-jump-reverse and begin-selection repeat-jump kill-selection end-selection + bind d,a backward-jump and repeat-jump-reverse and begin-selection repeat-jump kill-selection end-selection + bind -m insert c,l kill-word repaint-mode + bind -m insert c,L kill-bigword repaint-mode + bind -m insert c,l backward-char begin-selection kill-selection end-selection repaint-mode + bind -m insert c,L begin-selection kill-selection end-selection repaint-mode + bind '`' downcase-word + bind ctrl-k 'man (commandline -t) 2>/dev/null; or echo -n \a' + end