zsh-users
 help / color / mirror / code / Atom feed
From: Paul Seyfert <pseyfert@mathphys.fsk.uni-heidelberg.de>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: how to revert tab completion order in _arguments or _describe
Date: Sat, 30 Apr 2016 14:20:22 +0200	[thread overview]
Message-ID: <5724A306.3000103@mathphys.fsk.uni-heidelberg.de> (raw)
In-Reply-To: <20160430004638.GA30740@tarsus.local2>

On 30.04.2016 02:46, Daniel Shahaf wrote:
> Paul Seyfert wrote on Fri, Apr 29, 2016 at 16:55:57 +0200:
>> One drawback though is that I'm usually most interested in the latest
>> version number but the menu completion starts with the oldest version
>> number (i think it's alphabetically ordered). Is there a way to tell the
>> _describe in the (listversions) state to cycle through the options in a
>> specific order? (actually i'm not bound to stick to _describe there, any
>> other function would be fine, too)
> 
> Yes.  The option to show completions in the order given is either -J or
> -V (I don't remember which); both of them are documented under the
> 'compadd' builtin.
> 

Thanks for the pointer,
-V keeps the original order (and then I realised that the original list
wasn't fully sorted so I added a `sort -r` to the pipe)
https://github.com/pseyfert/lb-zsh/commit/8e77312b6e69eb53acf4d6035a77e3ef3420f38b


  reply	other threads:[~2016-04-30 12:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <572375FD.80200__31649.435326881$1461944191$gmane$org@mathphys.fsk.uni-heidelberg.de>
2016-04-30  0:46 ` Daniel Shahaf
2016-04-30 12:20   ` Paul Seyfert [this message]
2016-04-29 14:55 Paul Seyfert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5724A306.3000103@mathphys.fsk.uni-heidelberg.de \
    --to=pseyfert@mathphys.fsk.uni-heidelberg.de \
    --cc=d.s@daniel.shahaf.name \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).