Skip to content

Commit

Permalink
zsh: leave expansion to _expand
Browse files Browse the repository at this point in the history
This allows me to cycle through expansions and return to the original,
if I want, rather than having to stick with the fully expanded result
just from pressing TAB.

Recall that C-g is bound to list-expand to show expansion results, and
C-d/= list-choices to show possible completions (though vicmd = appears
to behave a bit differently than C-d in either mode).
  • Loading branch information
benknoble committed Nov 22, 2024
1 parent d581a9f commit 2f82864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion links/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ setopt completeinword
zmodload zsh/complist
bindkey -M menuselect ^Xi vi-insert
bindkey -M menuselect ^E send-break
zstyle ':completion:*' completer _extensions _complete _approximate
bindkey -M viins '^I' complete-word
zstyle ':completion:*' completer _expand _extensions _complete _approximate
zstyle ':completion:*' menu select=5
zstyle ':completion:*' list-separator '#'
zstyle ':completion:*:descriptions' format '%F{green}(%d)%f'
Expand Down

0 comments on commit 2f82864

Please sign in to comment.