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
Opened by arno (arenevier) - Thursday, 08 December 2011, 13:47 GMT
Last edited by Allan McRae (Allan) - Friday, 23 December 2022, 14:58 GMT
|
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
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