From: Rocky Bernstein <rockyb@rubyforge.org>
To: zsh-users@zsh.org
Subject: How to get compadd to not sort words?
Date: Sun, 14 Dec 2014 20:35:26 -0500 [thread overview]
Message-ID: <CANCp2gYQ35wjpXayoQG9J_VUmNUDLv+WdwsUETg66Ymsr+P=ng@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
Hi -
I've been working on beefing up command completion in the zsh debugger
zshdb.
For example, if I enter
compadd -- 1 2 -1 -2 -3 0
The completions come out in the order:
-3 -2 -1 0 1 2
But what I really want is the order I gave. (The most frequent "up or down"
command has value 1; the last useful is "up 0" which doesn't do anything.)
How can I tell compadd not to sort the completions?
Thanks.
next reply other threads:[~2014-12-15 1:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 1:35 Rocky Bernstein [this message]
2014-12-15 2:50 ` Bart Schaefer
2014-12-15 6:59 ` Rocky Bernstein
2014-12-15 9:09 ` Bart Schaefer
2014-12-15 16:16 ` Rocky Bernstein
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='CANCp2gYQ35wjpXayoQG9J_VUmNUDLv+WdwsUETg66Ymsr+P=ng@mail.gmail.com' \
--to=rockyb@rubyforge.org \
--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).