Запуск виджетов, если командная строка пуста
This commit is contained in:
@@ -51,6 +51,12 @@ if [[ -z ${ZSH_HISTORY_SEARCH_MULTI_WORD_MODE+set} ]]; then
|
||||
zinit wait'1' lucid light-mode depth'1' for \
|
||||
atload"bindkey '^K' history-search-multi-word" \
|
||||
zdharma-continuum/history-search-multi-word
|
||||
else
|
||||
function magic-ctrl-k {
|
||||
if ! (( $#BUFFER )) && [[ "$CONTEXT" == start ]]; then znt-history-widget; fi
|
||||
}
|
||||
zle -N magic-ctrl-k
|
||||
bindkey '^K' magic-ctrl-k
|
||||
#elif [ ${ZSH_HISTORY_SEARCH_MULTI_WORD_MODE} = "1" ]; then
|
||||
# zinit wait'2' lucid light-mode depth'1' for \
|
||||
# atload"bindkey '^K' history-search-multi-word" \
|
||||
|
Reference in New Issue
Block a user