From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15896 invoked from network); 6 May 2009 19:36:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 May 2009 19:36:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 96897 invoked from network); 6 May 2009 19:36:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 May 2009 19:36:41 -0000 Received: (qmail 17895 invoked by alias); 6 May 2009 19:36:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26941 Received: (qmail 17869 invoked from network); 6 May 2009 19:36:32 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 May 2009 19:36:32 -0000 Received: from clegg.madduck.net (clegg.madduck.net [193.242.105.96]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 01F4080590A3 for ; Wed, 6 May 2009 21:36:03 +0200 (CEST) Received: from piper.oerlikon.madduck.net (piper.oerlikon.madduck.net [IPv6:2001:41e0:ff12:0:211:2fff:fe6b:c869]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "piper.oerlikon.madduck.net", Issuer "CAcert Class 3 Root" (verified OK)) by clegg.madduck.net (postfix) with ESMTPS id EC83D1D409B; Wed, 6 May 2009 21:36:09 +0200 (CEST) Received: by piper.oerlikon.madduck.net (Postfix, from userid 1000) id 21FC5462D; Wed, 6 May 2009 21:36:09 +0200 (CEST) Date: Wed, 6 May 2009 21:36:09 +0200 From: martin f krafft To: 527301@bugs.debian.org, zsh-workers@sunsite.dk Subject: Re: Bug#527301: _xmms2 jump/_values: suboptimal presentation/sorting Message-ID: <20090506193609.GA3569@piper.oerlikon.madduck.net> References: <20090506162216.GA24031@piper.oerlikon.madduck.net> <20090506172631.GA2668@scru.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <20090506172631.GA2668@scru.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.94.2/9333/Wed May 6 05:55:26 2009 on clegg.madduck.net X-Virus-Scanned: ClamAV 0.92.1/9333/Wed May 6 05:55:26 2009 on bifrost X-Virus-Status: Clean --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable also sprach Clint Adams [2009.05.06.1926 +0200]: > zstyle :completion::complete:xmms2:\*:values list-grouped false > zstyle :completion::complete:xmms2:\*:values sort false Ooooh! Which documentation did I not read? I tried http://zsh.dotsrc.org/Doc/Release/zsh_19.html#SEC124 and the source code, but I couldn't deduce this gem. > I have no opinion on how the default behavior should be handled. I'd say for playlists, grouping makes no sense, and since the playlist is already passed sorted, sorting should be disabled, especially since it doesn't do numeric sorting anyway. My vote's for making your suggestion quoted above default. On a side note: why is the playlist sorted in reverse order? 18 -- Deep Purple - Smoke on the Water 17 -- Deep Purple - Speed King 16 -- Deep Purple - Anya 15 -- Deep Purple - Child in Time 14 -- Deep Purple - Anyone's Daugher 13 -- Deep Purple - Perfect Strangers 12 -- Deep Purple - A Twist in the Tail 11 -- Deep Purple - Black Night 10 -- Deep Purple - Highway Star 9 -- Deep Purple - Lucille 8 -- Deep Purple - Speed King 7 -- Deep Purple - Black Night 6 -- Deep Purple - Space Truckin' 5 -- Deep Purple - Lazy 4 -- Deep Purple - Strange Kind of Woman 3 -- Deep Purple - The Mule 2 -- Deep Purple - Smoke on the Water 1 -- Deep Purple - Child in Time I'd suggest --- /tmp/_xmms2 2009-05-06 21:32:06.000000000 +0200 +++ /usr/share/zsh-beta/functions/Completion/Unix/_xmms2 2009-05-06 = 21:32:23.000000000 +0200 @@ -66,7 +66,7 @@ fi done =20 - _values -s ' ' 'playlist items' ${(On)playlistitems} + _values -s ' ' 'playlist items' ${(on)playlistitems} =20 } In addition. --=20 .''`. martin f. krafft Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature; name="digital_signature_gpg.asc" Content-Description: Digital signature (see http://martin-krafft.net/gpg/) Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREDAAYFAkoB5qgACgkQIgvIgzMMSnXpJACfY2lf3hkwl2srZApPb0GuqELE DQsAoNAcfL9gfLxCHvMoGcBXhDr6b0gv =bbDt -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--