mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 18:39:26 +00:00
Compare commits
2 Commits
stashes
...
pull/563-c
Author | SHA1 | Date | |
---|---|---|---|
c2d6b378a6 | |||
7823bb9985 |
@ -57,6 +57,17 @@ key_info=(
|
|||||||
'BackTab' "$terminfo[kcbt]"
|
'BackTab' "$terminfo[kcbt]"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Escape sequences from Debian's inputrc.
|
||||||
|
key_info+=(
|
||||||
|
'ControlLeft' '\e[1;5D \e[5D \e\e[D \eOd'
|
||||||
|
'ControlRight' '\e[1;5C \e[5C \e\e[C \eOc'
|
||||||
|
)
|
||||||
|
|
||||||
|
# if [[ "$TERM" == rxvt* ]]; then
|
||||||
|
# key_info[ControlLeft]+=' \eOd'
|
||||||
|
# key_info[ControlRight]+=' \eOc'
|
||||||
|
# fi
|
||||||
|
|
||||||
# Set empty $key_info values to an invalid UTF-8 sequence to induce silent
|
# Set empty $key_info values to an invalid UTF-8 sequence to induce silent
|
||||||
# bindkey failure.
|
# bindkey failure.
|
||||||
for key in "${(k)key_info[@]}"; do
|
for key in "${(k)key_info[@]}"; do
|
||||||
@ -206,10 +217,10 @@ bindkey -d
|
|||||||
# Emacs Key Bindings
|
# Emacs Key Bindings
|
||||||
#
|
#
|
||||||
|
|
||||||
for key ("$key_info[Escape]"{B,b}) bindkey -M emacs "$key" emacs-backward-word
|
for key in "$key_info[Escape]"{B,b} "${(s: :)key_info[ControlLeft]}"
|
||||||
for key ("$key_info[Escape]"{F,f}) bindkey -M emacs "$key" emacs-forward-word
|
bindkey -M emacs "$key" emacs-backward-word
|
||||||
bindkey -M emacs "$key_info[Escape]$key_info[Left]" emacs-backward-word
|
for key in "$key_info[Escape]"{F,f} "${(s: :)key_info[ControlRight]}"
|
||||||
bindkey -M emacs "$key_info[Escape]$key_info[Right]" emacs-forward-word
|
bindkey -M emacs "$key" emacs-forward-word
|
||||||
|
|
||||||
# Kill to the beginning of the line.
|
# Kill to the beginning of the line.
|
||||||
for key in "$key_info[Escape]"{K,k}
|
for key in "$key_info[Escape]"{K,k}
|
||||||
|
Reference in New Issue
Block a user