rpm-software-management / dnf5

Next-generation RPM package management system
Other
254 stars 86 forks source link

autocomplete doesn't work on zsh #1826

Open LuanVSO opened 1 week ago

LuanVSO commented 1 week ago

zsh can't load dnf5 bash autocomplete causing it to use dnf4 autocomplete which causes problems specially with the remove command:

image

m-blaha commented 1 week ago

Thanks for reporting! There indeed are several problem with completions/dnf5 script:

The issue is valid and the completion needs to be adjusted to work in both environments.

sebastian-de commented 1 week ago

Completion with fish doesn't work with dnf5 either - is the same completion-script used for all shells?

LuanVSO commented 1 week ago

on dnf4 there's a script for bash and a different one for zsh

m-blaha commented 4 days ago

Downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2324465

firewavemtl commented 4 days ago

I tried very quickly to adapt _dnf to dnf5 but looks like the package_db somehow changed. We might do an intermediate sqlite file, as it was in the past (or present?) but it's not that great since dnf5 already manages a good db. I have to dig into dnf5 code to understand the support and structure.