From: "Johan Sundström" <johan_sundstrom@bigfoot.com>
To: zsh mailinglist <zsh-users@math.gatech.edu>
Subject: Compctl completion tweaking
Date: Tue, 23 Jun 1998 16:57:40 +0200 [thread overview]
Message-ID: <358FC264.1C7A9EFA@bigfoot.com> (raw)
I've been trying for some time to limit completion behaviour for some
commands in an intelligent manner. What I am trying to do is mask out
files not matching a given pattern, keeping directories intact, or,
better still, matching files according to some pattern and directories
according to some other pattern. Shouldn't that be possible using
something like -g '(*.rpm(.))|(*(-/))'? I tried for a while with some
print -m magic, but didn't quite manage to get it to work.
(Sure, -g '*.rmp(.)' + -g '*(-/)' does a fair job, but I find it
irritating that I cant tab my way down into a subdirectory of a
directory containing *.rpm files this way.)
Secondly, is there any way I can influence the sorting compctl does? I'd
be very happy if some commands' completion list would be sorted
files-first, others' directories-first, and yet others mixed-alpha-sort
(the only method I am aware of being possible). I thought this behaviour
could be mimiced crudely using -K functions, but it seems the function's
output is being sorted. It sure took me a while realizing that... :\
/Johan Sundström
next reply other threads:[~1998-06-23 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-23 14:57 Johan Sundström [this message]
1998-06-23 19:38 ` Bart Schaefer
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=358FC264.1C7A9EFA@bigfoot.com \
--to=johan_sundstrom@bigfoot.com \
--cc=zsh-users@math.gatech.edu \
/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).