zsh-completion: fix issue with [.md, add basic -L completion, remove extra _files args #168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes information:
commands=(...)
and_describe
to deal with '[.md' & empty cache scenario. Fixes zsh completion issue due to new '[.md' page #166tldr --list
stderr (2>/dev/null
) which breaks completion with empty cachesed
since Make list option display comply with official spec #112 changed commas to newlinessed
-equivalent replacement (:
->\:
) using native ZSH${name//pattern/repl}
since colon is special character in ZSH completions-L, --language
flag from Support multiple languages #125. In future, can consider adding extra completions maybe based on cachespages.{lang}
folders.'*:file:_files'
)The following are output from ZSH 5.8 with locally built master branch.
Some errors shown with original completions:
[.md:

Empty cache stderr:

Output of ZSH with new completions
No issue with [.md:

Empty cache, no completions shown (ignore dimmed font due to zsh-autosuggestions plugin):

Empty cache, flag completions after

-
: