我开始在macOS Sierra上使用zsh。我想要以下按键映射:
- Enter => accept-line
- Shift-Enter => accept-and-hold
然而,我似乎不能区分这两个按键。我只能获得Enter和Esc-Enter,但无法获得Shift-Enter:
bindkey "^M" accept-line # Enter
bindkey "^[^M" accept-and-hold # Esc-Enter
bindkey "????" accept-and-hold # Shift-Enter
能够检测和处理Shift-Enter吗?