Allow to bind Ctrl+arrow keys
Many terminals reserve the Ctrl-Arrow key for their own functions such as scrolling and window switching, and I don't think common terminfo databases define capabilities for the Ctrl-Arrow key. That means the current architecture of yash cannot support binding the Ctrl-Arrow key in the same way as other keys. But if you are sure that your terminal emits ^[[1;5D and ^[[1;5C for the Ctrl-Left/Right key, the following commands may help.
bindkey -e '\^[[1;5D' backward-emacsword bindkey -e '\^[[1;5C' forward-emacsword
I’d like to to bind Ctrl + Left/Right to backward/forward-emacsword, but I couldn’t figure out how. There’s no escape sequence for this key combination in lineedit, and it seems that ANSI escape sequences, such as ^[[1;5D and ^[[1;5C, are not supported…?