Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 106

How to bind a key to just another key in fish

$
0
0

I am trying to bind the key sequence control-h (\ch in fish) to the right arrow key. I know how to bind it to backward-char with bind the normal way, but that poses an issue in my config, since I have \b bound to backward-kill-word, such that fish interprets my control-h as a \b since the control key is held down and deletes the word.

bind \cl forward-charbind \ch backward-charbind \ck history-search-backwardbind \cj history-search-forwardbind \b backward-kill-word # this picks up control-h which I don't want

So I am wondering if I can just rebind \ch to do the same thing as the left arrow key, since that doesn't seem to get picked up by \b.


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>