3 ms·
Ctrl-R and Ctrl-S please. Using the arrow keys for searching through history quickly (i.e. without leaving the home row) sucks.
by xfr 9y ago
Ctrl-R and Ctrl-S please. Using the arrow keys for searching through history quickly (i.e. without leaving the home row) sucks.
- mixmastamyk 9y agoYou can bind and rebind most keys. Are those two not possible?
- realusername 9y ago+1. If some developer reads this, Ctrl+R is the only missing thing I can't imitate from bash.
- fallensatan 9y agoI 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 https://github.com/junegunn/fzf
- aequitas 9y agoI've been quiet happy with https://github.com/junegunn/fzf/wiki/Examples-(fish) 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.
- dri_ft 9y agoIt'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.
- sarif 9y agoyou dont really need Ctrl-R in fish. Just type the command you are searching for and hit the up arrow key. Same effect
- yedava 9y agoCtrl+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.