From: Greg Klanderman <gak@klanderman.net>
To: zsh-workers@sunsite.dk
Subject: Re: Questions about _values
Date: Sun, 25 Jan 2009 21:55:15 -0500 [thread overview]
Message-ID: <m3hc3mkc8c.fsf@klanderman.net> (raw)
In-Reply-To: <20090125233607.GA30627@fly.srk.fer.hr> (Dra's message of "Mon, 26 Jan 2009 00:36:07 +0100")
>>>>> Dra <Dra> writes:
> Argument is a PID, completed with _values.
Have you looked at the "kill" completions? It already does basically
what you are trying to do.. here are some style settings that may be
useful:
zstyle ':completion:*' select-prompt ""
zstyle ':completion:*' select-scroll -2
zstyle ':completion:*:*:kill:*' verbose yes
zstyle ':completion:*:*:kill:*' insert-ids longer
zstyle ':completion:*:*:kill:*:processes' command "ps $( (($UID == 0)) && echo a)uxwh"
I prefer to set insert-ids to single, but that breaks menu-select.
I have a fix I'll be submitting soon.
> 4. If I keep pressing TAB, zsh will offer completions. Is there a way to
> make it highlight (print the characters in bold or some color, for
> example) the offered item and its description in the list?
Yes, menu-select:
zmodload -i zsh/complist
bindkey '\M-\t' 'menu-select'
greg
next prev parent reply other threads:[~2009-01-26 2:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-25 23:36 Dražen Kačar
2009-01-26 2:55 ` Greg Klanderman [this message]
2009-01-26 21:10 ` Dražen Kačar
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=m3hc3mkc8c.fsf@klanderman.net \
--to=gak@klanderman.net \
--cc=zsh-workers@sunsite.dk \
/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).