How do I change the word boundaries of forward-word and backward-word? #543
-
How do I change the behavior of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
There isn't a way at this time. You could write custom commands in Lua, though. Or you could modify the Clink source code and add new commands written in C. |
Beta Was this translation helpful? Give feedback.
-
@whitesnakeftw I went to add commands, but then I realized commands already exist for this! I never use vi mode, so it hadn't occurred to me to look at the vi mode commands. Adding the following key bindings to your "\e[1;5D": vi-backward-bigword
"\e[1;5C": vi-forward-bigword None of the vi commands in Readline are documented, so it wouldn't have been easy to find them. I'll look into either documenting some of them (but that's kind of weird), or adding new documented command names that aren't vi-specific. |
Beta Was this translation helpful? Give feedback.
@whitesnakeftw I went to add commands, but then I realized commands already exist for this! I never use vi mode, so it hadn't occurred to me to look at the vi mode commands.
Adding the following key bindings to your
.inputrc
file will make Ctrl- Left and Right move the same way as they do in plain CMD.exe.None of the vi commands in Readline are documented, so it wouldn't have been easy to find them.
I'll look into either documenting some of them (but that's kind of weird), or adding new documented command names that aren't vi-specific.