[Customization guide] How to make ← and → in menu mean to leave the completion mode and edit the command line? #630
-
What do you want?Add an customization guide in the README to describe how to make ← and → in menu mean editing the current command line. Why do you want this?I think it is straightforward to make ← and → mean editing instead of menu selection. Who else would benefit from this?Others that think ← and → is more suited as editing instead of menu selection. How should it work?I actually don't know. That is part of the reason that I want to make a feature request. Given the following situation:
When I perform the following steps:
Then I expect the following to happen:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
bindkey -M menuselect '<escape code for ←>' .backward-char
bindkey -M menuselect '<escape code for →>' .forward-char Documented in |
Beta Was this translation helpful? Give feedback.
-
I borrowed the idea from
|
Beta Was this translation helpful? Give feedback.
-
I personally use the following snippet and it works fine. bindkey -M menuselect "$terminfo[kcub1]" .backward-char
bindkey -M menuselect "$terminfo[kcuf1]" .forward-char |
Beta Was this translation helpful? Give feedback.
Documented in