mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: change ctags symbols browser key binding from ctrl-k to alt-Q (#387)
The key is already bound to push-line, however the zle widget has also two other keys, ctrl-q and Alt-q, so no problem, as IMO users who want that widget already use Alt-q, not Alt-Q. Closes #386
This commit is contained in:
parent
65331c222d
commit
7f6dc7da6c
|
|
@ -381,8 +381,10 @@ if [[ $__tfind_spe_call_count -eq 1 ]]; then
|
|||
zle -A $pup_widget saved-$pup_widget
|
||||
zle -N $pdown_widget _tfind_simulate_widget
|
||||
zle -N $pup_widget _tfind_simulate_widget
|
||||
zle -A zle-line-pre-redraw saved-pre-redraw
|
||||
zle -D zle-line-pre-redraw
|
||||
if (( $+widgets[zle-line-pre-redraw] )); then
|
||||
zle -A zle-line-pre-redraw saved-pre-redraw
|
||||
zle -D zle-line-pre-redraw
|
||||
fi
|
||||
local selected_editor cd_at_edit tagtext tagline taglinebyte tagfile
|
||||
local -a comm
|
||||
comm=()
|
||||
|
|
@ -457,8 +459,11 @@ if [[ $__tfind_spe_call_count -eq 1 ]]; then
|
|||
zle -A saved-$pup_widget $pup_widget
|
||||
zle -D saved-$pdown_widget saved-$pup_widget
|
||||
|
||||
zle -A saved-pre-redraw zle-line-pre-redraw
|
||||
zle -D saved-pre-redraw
|
||||
if (( $+widgets[saved-pre-redraw] )); then
|
||||
zle -A saved-pre-redraw zle-line-pre-redraw
|
||||
zle -D saved-pre-redraw
|
||||
fi
|
||||
|
||||
# Full reinitialisation at next call
|
||||
__tfind_spe_call_count=0
|
||||
|
||||
|
|
|
|||
|
|
@ -3265,6 +3265,7 @@ zle -N zi-browse-symbol
|
|||
zle -N zi-browse-symbol-backwards zi-browse-symbol
|
||||
zle -N zi-browse-symbol-pbackwards zi-browse-symbol
|
||||
zle -N zi-browse-symbol-pforwards zi-browse-symbol
|
||||
bindkey "^K" zi-browse-symbol
|
||||
zstyle -s ':zinit:browse-symbol' key ZINIT_TMP || ZINIT_TMP='\eQ'
|
||||
[[ -n $ZINIT_TMP ]] && bindkey $ZINIT_TMP zi-browse-symbol
|
||||
|
||||
# vim:ft=zsh:sw=4:sts=4:et:foldmarker=[[[,]]]:foldmethod=marker
|
||||
|
|
|
|||
Loading…
Reference in a new issue