Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: how to revert tab completion order in _arguments or _describe
- X-seq: zsh-users 21508
- From: Paul Seyfert <pseyfert@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: how to revert tab completion order in _arguments or _describe
- Date: Sat, 30 Apr 2016 14:20:22 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <20160430004638.GA30740@tarsus.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <572375FD.80200__31649.435326881$1461944191$gmane$org@mathphys.fsk.uni-heidelberg.de> <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author