Hacker News new | ask | show | jobs
by xfr 3116 days ago
Ctrl-R and Ctrl-S please. Using the arrow keys for searching through history quickly (i.e. without leaving the home row) sucks.
5 comments

It's not the same as ctrl-R/ctrl-S, but you can use ctrl-P/ctrl-N to scroll history like with the arrows without leaving the home row.
I've been quiet happy with https://github.com/junegunn/fzf/wiki/Examples-(fish) as a ctrl-r replacement for fish. I would love this included natively in fish though so I won't have to manage remote shell configurations.
+1. If some developer reads this, Ctrl+R is the only missing thing I can't imitate from bash.
I know this might not be what you'd want, but I'm doing this with fzf[0]. I have something like this as an alias:

  eval (cat ~/.local/share/fish/fish_history | grep 'cmd:' | cut -c8- | fzf --tac)
and then I simply bound it with `\cr`. It doesn't exactly replace Ctrl-R functionality but it suits my need.

[0] https://github.com/junegunn/fzf

you dont really need Ctrl-R in fish. Just type the command you are searching for and hit the up arrow key. Same effect
Ctrl+R is more convenient if you are a touch typist. Using an arrow key forces you to take your right hand off from the home row.
You can bind and rebind most keys. Are those two not possible?