You are not logged in.
This works fine with "pacman -Q" for me, but not with "pacman -S". What's wrong?
Offline
% pacman -S<TAB> Sorry, no matches for: `package' or `option'
Any thoughts?
Because this completion doesn't do it character by character, but if you do -S then -l or whatever, with all the extra dashes, it will work. The completion would need to be rewritten to get the functionality you seek.
Offline
[...] so everyone who tries this out, please say hello, and then we can try convincing the maintainer.
Hello from over here, too!
I've tried it out a couple of weeks after I've migrated to zsh and it's exactly what I was looking for!
But I think I've encountered a bug with the current version (zsh-pacman 0.3-1):
From "man pacman":
QUERY OPTIONS
[...]
-p, --file
Tells pacman that the package supplied on the command line is a
file, not an entry in the database. Pacman will decompress the
file and query it. This is useful with --info and --list.
When using
pacman -Qlp <TAB>
and
pacman -Qip <TAB>
zsh also searches for completions in the database, but should look for a file instead...
The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.
Offline
pacman -Qlp <TAB> and pacman -Qip <TAB>
zsh also searches for completions in the database, but should look for a file instead...
ahh. the script is hardcoded to recognize -Qp as completing a filename, but would not recognize -Qip ... or -Qpi for that matter.
i've fixed the bug! go get zsh-pacman 0.4!
also, for elasticdog, it doesn't complete compound flags, you'll have to type <space><dash> to see a list of sub-flags. fyi, i haven't included --long flags for anything that has a short flag as well - so you won't see -S --refresh.
anyhow, enjoy!
Last edited by paranoos (2007-03-08 19:08:43)
Offline
Ahhh...that's cool, thanks for the clarification. I might dive in and see if I can't get the sub-flags working without the extra dash.
Offline
This isn't exactly on topic, but it's worth a shot. Is there any chance of porting the pacman completion to yaourt? The syntax is identical except that yaourt has a few more options (I don't think they would affect the completion). It would be much appreciated.
Offline