Skip to content
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 autocompletes package names only after repository name #640

Open
ratijas opened this issue Oct 3, 2020 · 6 comments
Open

Zsh autocompletes package names only after repository name #640

ratijas opened this issue Oct 3, 2020 · 6 comments
Assignees
Labels

Comments

@ratijas
Copy link
Contributor

ratijas commented Oct 3, 2020

In zsh, aura auto-completion for aura -S only works with on a per-repository level.

When I type in aura -S and press Tab, it only shows repositories. Furthermore, If I narrow it down to aura -S lib32 and press Tab, it won't show anything, despite the fact there's a huge amount of packages in multilib/ repository named like lib32-*.

It doesn't make any sense to disable autocomplete by package names, because after all you are able to install them without a repository/ prefix: aura -S lib32-gcc-libs (btw, despite its name, this one is from core/).

Expected behavior

Autocomplete both repositories and individual packages on a top level (aura -S abc<Tab>). Possibly, group repos and packages into separate autocompletion categories (to the best of my knowledge, it is possible, e.g. in docker).

Actual behavior

Autocompletion for package names is not provided, or provided only with "repository/" prefix.

Alternatives

Consider suggestions from pacaur:

% pacaur -S lib32-<Tab>
zsh: do you wish to see all 754 possibilities (378 lines)?
<Tab anyway>
% pacaur -S lib32-86box-nightly-bin
>lib32-86box-nightly-bin<             lib32-libpaper                      
 lib32-a52dec                          lib32-libpciaccess-git              
 lib32-allegro                         lib32-libplacebo                    
 lib32-allegro4                        lib32-libplacebo-git                
 lib32-alsaequal                       lib32-libpng14                      
 lib32-alure                           lib32-libpng15                      
 lib32-amdgpu-pro-libgl                lib32-libprotobuf                   
 lib32-amdvlk-git                      lib32-libprotobuf-git               
 ...
Scrolling active: current selection at Top
@ratijas
Copy link
Contributor Author

ratijas commented Oct 3, 2020

Fun fact: aura -Qi autocompletes packages with both empty search term, and with package name's starting letters.

@fosskers
Copy link
Owner

fosskers commented Oct 5, 2020

I will have to revisit these completions.

@ratijas
Copy link
Contributor Author

ratijas commented Oct 6, 2020

...or leave zsh to me — I'm actively diving into its depths lately.

@fosskers
Copy link
Owner

fosskers commented Oct 6, 2020

That would actually help quite a lot. I use Fish, so would have to do a lot of background work to fix the zsh completions myself.

@ratijas
Copy link
Contributor Author

ratijas commented Oct 6, 2020

Can you 'assign' it to me, so I won't forget it, please?

@fosskers
Copy link
Owner

I will be revisiting zsh completions soon.

@fosskers fosskers added the bug? label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants