|
|
@ -13,11 +13,24 @@ pmodload 'editor' |
|
|
|
source "${0:h}/external/zsh-history-substring-search.zsh" |
|
|
|
source "${0:h}/external/zsh-history-substring-search.zsh" |
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
|
# |
|
|
|
# Styles |
|
|
|
# Search |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zstyle -s ':prezto:module:history-substring-search:color' found \ |
|
|
|
|
|
|
|
'HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND' \ |
|
|
|
|
|
|
|
|| HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=magenta,fg=white,bold' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zstyle -s ':prezto:module:history-substring-search:color' not-found \ |
|
|
|
|
|
|
|
'HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND' \ |
|
|
|
|
|
|
|
|| HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=white,bold' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zstyle -s ':prezto:module:history-substring-search' globbing-flags \ |
|
|
|
|
|
|
|
'HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS' \ |
|
|
|
|
|
|
|
|| HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS='i' |
|
|
|
|
|
|
|
|
|
|
|
if zstyle -t ':prezto:module:history-substring-search' case-sensitive; then |
|
|
|
if zstyle -t ':prezto:module:history-substring-search' case-sensitive; then |
|
|
|
unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS |
|
|
|
HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS=\ |
|
|
|
|
|
|
|
"${HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS//i}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if ! zstyle -t ':prezto:module:history-substring-search' color; then |
|
|
|
if ! zstyle -t ':prezto:module:history-substring-search' color; then |
|
|
@ -28,7 +41,7 @@ fi |
|
|
|
# Key Bindings |
|
|
|
# Key Bindings |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
if [[ -n $key_info ]]; then |
|
|
|
if [[ -n "$key_info" ]]; then |
|
|
|
# Emacs |
|
|
|
# Emacs |
|
|
|
bindkey -M emacs "$key_info[Control]P" history-substring-search-up |
|
|
|
bindkey -M emacs "$key_info[Control]P" history-substring-search-up |
|
|
|
bindkey -M emacs "$key_info[Control]N" history-substring-search-down |
|
|
|
bindkey -M emacs "$key_info[Control]N" history-substring-search-down |
|
|
|