mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 02:18: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}; \
|
for key in "$keyinfo[Escape]"{K,k}; \
|
||||||
bindkey -M emacs "$key" backward-kill-line
|
bindkey -M emacs "$key" backward-kill-line
|
||||||
|
|
||||||
# Redo
|
# Redo.
|
||||||
[[ -n "$keyinfo[Escape]" ]] && \
|
[[ -n "$keyinfo[Escape]" ]] && \
|
||||||
bindkey -M emacs "$keyinfo[Escape]_" redo
|
bindkey -M emacs "$keyinfo[Escape]_" redo
|
||||||
|
|
||||||
@ -107,14 +107,18 @@ if [[ "$keymap" == (emacs|) ]]; then
|
|||||||
# otherwise, bind to built-in Zsh history search.
|
# otherwise, bind to built-in Zsh history search.
|
||||||
if (( $+widgets[history-incremental-pattern-search-backward] )); then
|
if (( $+widgets[history-incremental-pattern-search-backward] )); then
|
||||||
[[ -n "$keyinfo[Control]" ]] && \
|
[[ -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]" ]] && \
|
[[ -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
|
else
|
||||||
[[ -n "$keyinfo[Control]" ]] && \
|
[[ -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]" ]] && \
|
[[ -n "$keyinfo[Control]" ]] && \
|
||||||
bindkey -M emacs "$keyinfo[Control]S" history-incremental-search-forward
|
bindkey -M emacs "$keyinfo[Control]S" \
|
||||||
|
history-incremental-search-forward
|
||||||
fi
|
fi
|
||||||
elif [[ "$keymap" == vi ]]; then
|
elif [[ "$keymap" == vi ]]; then
|
||||||
# Use vi key bindings.
|
# Use vi key bindings.
|
||||||
|
Loading…
Reference in New Issue
Block a user