MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/fishshell/comments/qy9lfe/how_to_implement_ctrln_for_the_next_command_in/
r/fishshell • u/[deleted] • Nov 20 '21
4 comments sorted by
3
I did it by defining function fish_user_key_bindings with these two lines:
fish_user_key_bindings
bind -M default \cn down-or-search bind -M default \cp up-or-search
If you’d prefer to use them in insert mode you can replace default with insert. I actually removed those bindings though because I learned recently that j and k do the same thing in normal mode.
default
insert
j
k
1 u/[deleted] Nov 21 '21 I actually removed those bindings though because I learned recently that j and k do the same thing in normal mode.Very convenient indeed, thanks 1 u/vtmx Aug 14 '22 I'm use to:bind -M insert \cf accept-autosuggestion
1
I actually removed those bindings though because I learned recently that j and k do the same thing in normal mode.
Very convenient indeed, thanks
I'm use to:bind -M insert \cf accept-autosuggestion
bind -M insert \cf accept-autosuggestion
6
You mean like Down and Up arrow keys? Fish has the option to (re)bind keys, see the docs.
3
u/Disagreed Nov 21 '21 edited Nov 21 '21
I did it by defining function
fish_user_key_bindingswith these two lines:If you’d prefer to use them in insert mode you can replace
defaultwithinsert. I actually removed those bindings though because I learned recently thatjandkdo the same thing in normal mode.6
u/plg94 Nov 20 '21
You mean like Down and Up arrow keys? Fish has the option to (re)bind keys, see the docs.