-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
Tab completion for the 'debian' plugin #3686
Comments
Completion for the In order to help us help you, please answer the following three questions about your completion issue:
|
When I use But when I am using |
The Debian plugin already has support for completion on those
But it doesn't seem to be working. I think the problem is that unless you have the Also, the Normally, If you don't need to support changing |
I'm also experiencing this. @apjanke Where do I set |
In your zshrc file should be enough, with a simple |
|
The problem is that setting |
You should make |
@apjanke Any thougths on a fix for this? I've been scowering the corners of the web hoping someone has found a solution I could use (the setopt mentioned here isn't working for me) |
@NellyWhadsDev: if setopt complete_aliases isn't working for you then you must have some other issue. To begin with is completion after 'apt-cache search ' working for you? Where are you setting the option: could it be getting reset? |
@okapia I'm setting it at the very end of my .zshrc, using |
@okapia here's a little update:
|
Bumping this, any thoughts? |
NellyWhadsDev: based on what you say, your problem has nothing to do with aliases which is what this bug was originally opened to handle. What it comes down to is that the apt-cache completion is explicitly defined to not complete anything after "apt-cache search" because search terms can be literally anything. But it will prompt for a "search term". Similarly, nothing is completed after grep: you're just prompted for a "pattern". If you want completion of an acs alias to prompt for a "search term", this bug is relevant. If you want to complete packages instead of search terms, you'll need to use a modified _apt. If you want the default _apt function to do this, it'll probably need to be configurable because packages are not search terms. |
I've submitted #7698 which should take care of this issue, please test and +1 if it works. |
…7698) * Use double quotes to cache value of $apt_pref and $apt_upgr * Clean up and fix syntax of command checks * Clean up README and document $apt_pref/$apt_upgr overriding mechanism * Rename `ag` alias (apt upgrade) to `au` * Clean up README and fix syntax Fixes ohmyzsh#3686 Fixes ohmyzsh#4660 Closes ohmyzsh#5906 Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
…7698) * Use double quotes to cache value of $apt_pref and $apt_upgr * Clean up and fix syntax of command checks * Clean up README and document $apt_pref/$apt_upgr overriding mechanism * Rename `ag` alias (apt upgrade) to `au` * Clean up README and fix syntax Fixes ohmyzsh#3686 Fixes ohmyzsh#4660 Closes ohmyzsh#5906 Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
…7698) * Use double quotes to cache value of $apt_pref and $apt_upgr * Clean up and fix syntax of command checks * Clean up README and document $apt_pref/$apt_upgr overriding mechanism * Rename `ag` alias (apt upgrade) to `au` * Clean up README and fix syntax Fixes ohmyzsh#3686 Fixes ohmyzsh#4660 Closes ohmyzsh#5906 Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
…7698) * Use double quotes to cache value of $apt_pref and $apt_upgr * Clean up and fix syntax of command checks * Clean up README and document $apt_pref/$apt_upgr overriding mechanism * Rename `ag` alias (apt upgrade) to `au` * Clean up README and fix syntax Fixes ohmyzsh#3686 Fixes ohmyzsh#4660 Closes ohmyzsh#5906 Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
…7698) * Use double quotes to cache value of $apt_pref and $apt_upgr * Clean up and fix syntax of command checks * Clean up README and document $apt_pref/$apt_upgr overriding mechanism * Rename `ag` alias (apt upgrade) to `au` * Clean up README and fix syntax Fixes ohmyzsh#3686 Fixes ohmyzsh#4660 Closes ohmyzsh#5906 Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
…7698) * Use double quotes to cache value of $apt_pref and $apt_upgr * Clean up and fix syntax of command checks * Clean up README and document $apt_pref/$apt_upgr overriding mechanism * Rename `ag` alias (apt upgrade) to `au` * Clean up README and fix syntax Fixes ohmyzsh#3686 Fixes ohmyzsh#4660 Closes ohmyzsh#5906 Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
* Use double quotes to cache value of $apt_pref and $apt_upgr * Clean up and fix syntax of command checks * Clean up README and document $apt_pref/$apt_upgr overriding mechanism * Rename `ag` alias (apt upgrade) to `au` * Clean up README and fix syntax Fixes #3686 Fixes #4660 Closes #5906 Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
When using apt- commands normally, I can get tab completion to automatically complete the package name OR list the packages matching pattern. Is it possible to get that with the debian plugin?
Like while using acs.
The text was updated successfully, but these errors were encountered: