Closed AndydeCleyre closed 6 months ago
Unlike fish and bash completions, zsh options are completed when specified before the pattern and file arguments. If you know how to get zsh completions to also work after pattern and/or file arguments then let me know.
I haven't figured it out, but can provide the example of ripgrep's Zsh completion, which seems to achieve the goal.
Zsh grep completions do a better job and have been around for a long time. Since ugrep is backward compatible to grep, I'll try to work some of the zsh grep completions into ugrep's completions.
Committed a fix. This update also makes several options repeatable when they are repeatable, such as -e PATTERN
, same as zsh grep completions.
Thank you!
Completions are updated in release 6.1.
6.0.0
Given the file
sample.txt
:Each of the following commands will work as expected:
But in none of those cases will the
--only-matching
flag be tab-completed.