Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#27493 - make zsh completion more easily reusable

Attached to Project: Pacman
Opened by arno (arenevier) - Thursday, 08 December 2011, 13:47 GMT
Last edited by Allan McRae (Allan) - Friday, 23 December 2022, 14:58 GMT
Task Type Feature Request
Category Scripts & Tools
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hi,
currently, if I want to make a custom completion to complete a script with list of available packages, I need to copy _pacman_completions_all_packages function (and also _pacman_get_command) in my script.

For dpkg based systems, zsh provides a separate script which defines a function _deb_packages
# Usage: _deb_packages expl... avail|installed|uninstalled

http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob;f=Completion/Debian/Type/_deb_packages;h=74b1518447dc78948225f2c2406ff79b64886c4e;hb=HEAD

Then, dpkg completion scripts use this function. And external completion can also use this public function.
So, would it be possible to separate low level functions (
_pacman_completions_all_packages, _pacman_completions_installed_groups, etc) and pacman completion in two seperate files ?
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 23 December 2022, 14:58 GMT
Reason for closing:  Won't fix
Additional comments about closing:  old request - it will only be considered if someone wants to submit a patch

Loading...