Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to get compadd to not sort words?
- X-seq: zsh-users 19533
- From: Rocky Bernstein <rockyb@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: How to get compadd to not sort words?
- Date: Sun, 14 Dec 2014 20:35:26 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=mqGqdh4QIq1+VhBPS5tA5AbZ+QCJC4LiJ7TUcpIJZ1s=; b=kqUBgBmIDIrkHldXsTzBQE/PXZS8sWtotqWU+wEU5ceUvp1ULzNv72SyOED8VqGp5t 5iTIC82foaiMEXoHBRjJyrgdwVbszLQ+3IpBi810bmT4ILLJKolUDo3ZxsWkN4I9wrWC aQlTqijth9YT1dQPm0Y6+HuCgcSDZ9zMgxIqD6h9KWnYUCPEqBop/05OxG6uR48Xm7FE hI5ZjMJnV5UAdJS9tivhYVVggEuUuEUTGDUx85VQNzSNe9Py9IH54daUzCzFydj8iMod VNDoZrd5DI+ORkmdGm1axKxmAQq6OB5LcK+nbyDRnjlyelzgv8PzHAlFovwm0bMwfNgg hvlA==
- 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
- Sender: rocky.bernstein@xxxxxxxxx
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author