zsh-workers
 help / color / mirror / code / Atom feed
* Re: PATCH: dpkg -s style support for _dpkg
@ 2000-01-05  9:12 Sven Wischnowsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2000-01-05  9:12 UTC (permalink / raw)
  To: zsh-workers


Clint Adams wrote:

> > > +zstyle -s ':completion${curcontext}:deb:dpkg' status dds
> 
> > Hm. Why this weird tag name? And why the abbreviated context name?
> 
> Maybe I don't know what I'm doing.  My intent was to have _deb_package
> completion for dpkg be :deb:dpkg and for apt as :deb:apt; however,
> I was assuming some overlap which no longer looks reasonable.
> What abbreviated context name?

`deb'. I tried to make tag and style names a bit more longish, but
maybe `deb' is a well known abbreviation for `debian'(?).

> > And why no docs? ;-)
> 
> Is zshcompsys the right place for them?

Yes, there are sections for the tags and the styles already.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: dpkg -s style support for _dpkg
  2000-01-04  9:14 Sven Wischnowsky
@ 2000-01-04 16:27 ` Clint Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Clint Adams @ 2000-01-04 16:27 UTC (permalink / raw)
  To: Sven Wischnowsky; +Cc: zsh-workers

> > +zstyle -s ':completion${curcontext}:deb:dpkg' status dds

> Hm. Why this weird tag name? And why the abbreviated context name?

Maybe I don't know what I'm doing.  My intent was to have _deb_package
completion for dpkg be :deb:dpkg and for apt as :deb:apt; however,
I was assuming some overlap which no longer looks reasonable.
What abbreviated context name?

> And why no docs? ;-)

Is zshcompsys the right place for them?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: dpkg -s style support for _dpkg
@ 2000-01-04  9:14 Sven Wischnowsky
  2000-01-04 16:27 ` Clint Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Wischnowsky @ 2000-01-04  9:14 UTC (permalink / raw)
  To: zsh-workers


Clint Adams wrote:

> ...
>  
> +zstyle -s ':completion${curcontext}:deb:dpkg' status dds
> +[[ "$dds" == installed ]] || dds="avail"
> +

Hm. Why this weird tag name? And why the abbreviated context name?
And why no docs? ;-)

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

* PATCH: dpkg -s style support for _dpkg
@ 1999-12-29  2:57 Clint Adams
  0 siblings, 0 replies; 4+ messages in thread
From: Clint Adams @ 1999-12-29  2:57 UTC (permalink / raw)
  To: zsh-workers

This allows user-level configuration of how dpkg -s calls _deb_packages.

Index: Completion/Debian/_dpkg
===================================================================
RCS file: /cvs/zsh/zsh/Completion/Debian/_dpkg,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 _dpkg
--- Completion/Debian/_dpkg	1999/12/22 17:19:44	1.1.1.3
+++ Completion/Debian/_dpkg	1999/12/29 02:53:15
@@ -1,5 +1,7 @@
 #compdef dpkg dpkg-deb
 
+local dds
+
 _dpkg_deb_args=('(--build)-b[build archive]:directory:_files -/' \
            '(-b)--build:directory:_files -/' \
            '(--contents)-c[list contents]:Debian package:_files -g \*.deb' \
@@ -20,6 +22,9 @@
            '--version[show version]' \
            '--licence[show licensing]')
 
+zstyle -s ':completion${curcontext}:deb:dpkg' status dds
+[[ "$dds" == installed ]] || dds="avail"
+
 case "$words[1]" in
 dpkg)
 _arguments -s '(--install)-i[install packages]:Debian package:_files -g \*.deb' \
@@ -38,8 +43,8 @@
            '--merge-avail[merge available]:package file:_files' \
            '--clear-avail[clear available]' \
            '--forget-old-unavail[forget uninstalled unavailable]' \
-           '(--status)-s[display package status]:packages:_deb_packages avail' \
-           '(-s)--status:packages:_deb_packages avail' \
+           '(--status)-s[display package status]:packages:_deb_packages $dds' \
+           '(-s)--status:packages:_deb_packages $dds' \
            '(--print-avail)-p[display available details]:packages:_deb_packages avail' \
            '(-p)--print-avail:packages:_deb_packages avail' \
            '(--listfiles)-L[list owned files]:packages:_deb_packages installed' \


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-01-05  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-05  9:12 PATCH: dpkg -s style support for _dpkg Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
2000-01-04  9:14 Sven Wischnowsky
2000-01-04 16:27 ` Clint Adams
1999-12-29  2:57 Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).