mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 21:58:00 +00:00
Split a few key bindings to fit on screen
This commit is contained in:
parent
541f05eb67
commit
03e4cfd3b1
14
keyboard.zsh
14
keyboard.zsh
@ -82,7 +82,7 @@ if [[ "$keymap" == (emacs|) ]]; then
|
||||
for key in "$keyinfo[Escape]"{K,k}; \
|
||||
bindkey -M emacs "$key" backward-kill-line
|
||||
|
||||
# Redo
|
||||
# Redo.
|
||||
[[ -n "$keyinfo[Escape]" ]] && \
|
||||
bindkey -M emacs "$keyinfo[Escape]_" redo
|
||||
|
||||
@ -107,14 +107,18 @@ if [[ "$keymap" == (emacs|) ]]; then
|
||||
# otherwise, bind to built-in Zsh history search.
|
||||
if (( $+widgets[history-incremental-pattern-search-backward] )); then
|
||||
[[ -n "$keyinfo[Control]" ]] && \
|
||||
bindkey -M emacs "$keyinfo[Control]R" history-incremental-pattern-search-backward
|
||||
bindkey -M emacs "$keyinfo[Control]R" \
|
||||
history-incremental-pattern-search-backward
|
||||
[[ -n "$keyinfo[Control]" ]] && \
|
||||
bindkey -M emacs "$keyinfo[Control]S" history-incremental-pattern-search-forward
|
||||
bindkey -M emacs "$keyinfo[Control]S" \
|
||||
history-incremental-pattern-search-forward
|
||||
else
|
||||
[[ -n "$keyinfo[Control]" ]] && \
|
||||
bindkey -M emacs "$keyinfo[Control]R" history-incremental-search-backward
|
||||
bindkey -M emacs "$keyinfo[Control]R" \
|
||||
history-incremental-search-backward
|
||||
[[ -n "$keyinfo[Control]" ]] && \
|
||||
bindkey -M emacs "$keyinfo[Control]S" history-incremental-search-forward
|
||||
bindkey -M emacs "$keyinfo[Control]S" \
|
||||
history-incremental-search-forward
|
||||
fi
|
||||
elif [[ "$keymap" == vi ]]; then
|
||||
# Use vi key bindings.
|
||||
|
Loading…
Reference in New Issue
Block a user