Skip to content

If the list doesn't fit the screen it sometimes ignores the order configuration. #190

Answered by marlonrichert
GitUser0080 asked this question in Q&A
Discussion options

You must be logged in to vote

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 the file-patterns setting. To get what you want, you need to use the following:

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'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GitUser0080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #186 on February 25, 2021 21:56.