|
|
@ -19,7 +19,7 @@ zstyle ':omz:prompt:vi' insert '>>>' |
|
|
|
zstyle ':omz:prompt:vi' command '<<<' |
|
|
|
zstyle ':omz:prompt:vi' command '<<<' |
|
|
|
|
|
|
|
|
|
|
|
# Indicator to notify of generating completion. |
|
|
|
# Indicator to notify of generating completion. |
|
|
|
zstyle ':omz:editor' completing '...' |
|
|
|
zstyle ':omz:module:editor' completing '...' |
|
|
|
|
|
|
|
|
|
|
|
# Beep on error in line editor. |
|
|
|
# Beep on error in line editor. |
|
|
|
setopt BEEP |
|
|
|
setopt BEEP |
|
|
@ -96,7 +96,7 @@ zle -N expand-dot-to-parent-directory-path |
|
|
|
# Displays an indicator when completing. |
|
|
|
# Displays an indicator when completing. |
|
|
|
function expand-or-complete-with-indicator { |
|
|
|
function expand-or-complete-with-indicator { |
|
|
|
local indicator |
|
|
|
local indicator |
|
|
|
zstyle -s ':omz:editor' completing 'indicator' |
|
|
|
zstyle -s ':omz:module:editor' completing 'indicator' |
|
|
|
print -Pn "$indicator" |
|
|
|
print -Pn "$indicator" |
|
|
|
zle expand-or-complete-prefix |
|
|
|
zle expand-or-complete-prefix |
|
|
|
zle redisplay |
|
|
|
zle redisplay |
|
|
@ -204,7 +204,7 @@ for keymap in 'emacs' 'viins'; do |
|
|
|
bindkey -M "$keymap" "$keyinfo[Control]I" expand-or-complete-prefix |
|
|
|
bindkey -M "$keymap" "$keyinfo[Control]I" expand-or-complete-prefix |
|
|
|
|
|
|
|
|
|
|
|
# Expand .... to ../.. |
|
|
|
# Expand .... to ../.. |
|
|
|
if zstyle -t ':omz:editor' dot-expansion; then |
|
|
|
if zstyle -t ':omz:module:editor' dot-expansion; then |
|
|
|
bindkey -M "$keymap" "." expand-dot-to-parent-directory-path |
|
|
|
bindkey -M "$keymap" "." expand-dot-to-parent-directory-path |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
@ -217,12 +217,12 @@ for keymap in 'emacs' 'viins'; do |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# Do not expand .... to ../.. during incremental search. |
|
|
|
# Do not expand .... to ../.. during incremental search. |
|
|
|
if zstyle -t ':omz:editor' dot-expansion; then |
|
|
|
if zstyle -t ':omz:module:editor' dot-expansion; then |
|
|
|
bindkey -M isearch . self-insert 2> /dev/null |
|
|
|
bindkey -M isearch . self-insert 2> /dev/null |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Set the key layout. |
|
|
|
# Set the key layout. |
|
|
|
zstyle -s ':omz:editor' keymap 'keymap' |
|
|
|
zstyle -s ':omz:module:editor' keymap 'keymap' |
|
|
|
if [[ "$keymap" == (emacs|) ]]; then |
|
|
|
if [[ "$keymap" == (emacs|) ]]; then |
|
|
|
bindkey -e |
|
|
|
bindkey -e |
|
|
|
elif [[ "$keymap" == vi ]]; then |
|
|
|
elif [[ "$keymap" == vi ]]; then |