If the list doesn't fit the screen it sometimes ignores the order configuration. #190
-
$ cd $(mktemp -d) # Create a temp dir and enter it.
$ ZDOTDIR=$PWD HOME=$PWD zsh -f # Start a subshell in it without config files.
% source path/to/zsh-autocomplete.plugin.zsh # Source the plugin.
% cd ctftrash # Go to the directory with files
% clear
% ls
% cat s # To this point everything works correctly
% # Now do long listing
% ls -l
% cat s # only the directories appear
% # if you remove 's' and type it again eventually all files will appear I don't know if it's an intended behavior but since it happens to me I decided to report it. When a list doesn't fit the screen it displays only "local directories" regardless of configuration. One thing to note is that I specified in my .zshrc to display the "file" before the "local directory". This however seems to have no effect in this case. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is because while zstyle ':completion:*:' group-order \
options executables \
globbed-files directories all-files \
suffix-aliases aliases functions builtins reserved-words
zstyle ':completion:*' file-patterns \
'%p(-.):globbed-files *(-/):directories:directory' '*:all-files' |
Beta Was this translation helpful? Give feedback.
This is because while
group-order
controls the order in which completions are displayed, it does not control the order in which they are generated. For file completions, this is controlled by thefile-patterns
setting. To get what you want, you need to use the following: