-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh completion issue due to new '[.md' page #166
Comments
Thanks! Since I'm not a zsh user myself: Tested pull requests are welcome! |
I'll test it a bit and try some other options. I do see an issue when dealing with an empty cache since it tab-completes an escaped empty string. ❯ tldr <tab>
❯ tldr \'\' |
Created PR using different array solution rather than |
dbrgn
pushed a commit
that referenced
this issue
Mar 21, 2021
…extra _files args (#168) - Use array `commands=(...)` and `_describe` to deal with '[.md' & empty cache scenario. Fixes #166 - Hide `tldr --list` stderr (`2>/dev/null`) which breaks completion with empty cache - Remove `sed` since #112 changed commas to newlines - Add new `sed`-equivalent replacement (`:` -> `\:`) using native [ZSH `${name//pattern/repl}`](http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion) since colon is special character in ZSH completions - Add basic support for `-L, --language` flag from #125. In future, can consider adding extra completions maybe based on caches `pages.{lang}` folders. - Remove extraneous completion of file names for positional arguments (i.e. `'*:file:_files'`)
Has this been released yet? |
@lovetoburnswhen no, not yet. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, ZSH tab-completion is erroring with:
This may be due to TLDR adding a new page for '[.md' recently
Taking a look at ZSH Parameter Expansion, one option seems to be to use the
q
option:The text was updated successfully, but these errors were encountered: