zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Hannu Koivisto <azure@iki.fi>,
	"Zsh User's List" <zsh-users@math.gatech.edu>
Subject: Re: Controlling the order of -/g produced files and directories
Date: Mon, 24 Aug 1998 10:14:16 -0700	[thread overview]
Message-ID: <980824101416.ZM10055@candle.brasslantern.com> (raw)
In-Reply-To: <87af4ubdgk.fsf@quasar.vvf.fi>

On Aug 24,  6:34pm, Hannu Koivisto wrote:
} Subject: Controlling the order of -/g produced files and directories
}
} I'd like to make such a completion for my utgz and vtgz shell
} functions that it matches to *.tgz, *.tar.gz and directories.
} 
} compctl -/g '*.(tgz|tar.gz)' utgz vtgz
} 
} Although I didn't find explanation for this -/g option

That's not one option, it's two:
	-/
	-g '*.(tgz|tar.gz)'

It happens that you can run them together as -/g because -/ doesn't
take any additional arguments.  -/ means "complete filesystem paths."

} However, I would prefer that if some directory has both matching
} files and subdirectories then those files would be first in the
} list of completions and those directories last.

Zsh currently sorts the completion list itself, alphabetically; there
has been discussion of changing this on the developer's list, but at
the moment you can't force files to sort ahead of directories.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1998-08-25  0:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-24 15:34 Hannu Koivisto
1998-08-24 17:14 ` Bart Schaefer [this message]
1998-08-25 10:24   ` Hannu Koivisto

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=980824101416.ZM10055@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=azure@iki.fi \
    --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).