How to select text with arrow keys in fish shell

Viewed 598

I am a windows user. I am trying Ubuntu via WSL-2. I am struggling to select text with arrow keys in fish shell. I tried so many places to get answer for this question, but no one gave me proper solution. In documentation they wrote about binding for begin-selection. But what is the default way to do this?

2 Answers

begin-selection is a key binding, but it's not enabled in the standard key bindings by default.

You'll need to set some key bindings to begin and end selecting text. For example:

bind \e, begin-selection
bind \e. end-selection

will set Alt-< and Alt-> to be begin and end select mode, respectively. These can be used with the default Ctrl-X clipboard copy function.

Related