From 59c208db6ca0ca375b4f11626d677c7163ca5aa8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 1 May 2022 08:37:55 +0200 Subject: [PATCH] Improve Zsh completions Don't complete directory stack, add keybind for filtering completions. --- .config/zsh/.zshrc | 1 + .config/zsh/keys.zsh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index acaa34b..c297ae1 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -22,6 +22,7 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}' 'r:|=*' 'l:|=* r:| zstyle ':completion:*' file-sort modification # access didn't work. zstyle ':completion:*' sort false # Needed for file-sort. zstyle ':completion:*:processes' command "ps -u $USER -o pid,user,comm,cmd -w -w" +zstyle ':completion:*' complete-options true compdef '_dispatch git git' config # git completions for config. diff --git a/.config/zsh/keys.zsh b/.config/zsh/keys.zsh index cdaa8d5..2f8b3f1 100644 --- a/.config/zsh/keys.zsh +++ b/.config/zsh/keys.zsh @@ -78,3 +78,6 @@ bindkey '^q' push-line-or-edit autoload edit-command-line; zle -N edit-command-line bindkey '^[e' edit-command-line bindkey '^x^e' edit-command-line + +# Interactive mode in completions (filter) +bindkey -M menuselect '^xf' vi-insert