Zsh Mailing List Archive
Messages sorted by:
Re: complete based on contents of another folder or folders?
- X-seq: zsh-users 16199
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: complete based on contents of another folder or folders?
- Date: Mon, 8 Aug 2011 10:34:02 -0400
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wVhzNNd3x5vc4szOYc3txnDgcz9Ahv5LewRcjNzC6So=; b=sJLtMidMRQXrF/b862XkJro3RJdEwm88ECnumkRPpp7voK7Yo4N9mPdgPFAejYmykd xnBGtlEMOw1sAjh8TnmM4e8464jvzbsmKPyeP1IQ09PJv50iXpBYeWI6Cx/i9jIQUf6s lhD8a+P0FB83e+ZmQ1zmWxa4lSgWYiTV9Wn5Y=
- In-reply-to: <110807132323.ZM27531@torch.brasslantern.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHtmPXFbEfuw434UK=uNjGNt6KCJyPb66EukL4E2Yvf_3g@mail.gmail.com> <110807132323.ZM27531@torch.brasslantern.com>
On Sun, Aug 7, 2011 at 4:23 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } - no filenames do NOT have spaces in them
> I'm not sure what that means. "All filenames DO have spaces" perhaps?
> In any case this shouldn't matter, completion will take care of doing
(It means I'm a moron.)
I conflated "no filenames have spaces" and "filenames do NOT have
spaces" and created a double negative which said exactly the opposite
of what I was trying to say.
> } - I only want the part of the filename up until the first literal "."
> } (and each file has at least one ".")
> At this point you've gone beyond what can be done with configurations
> of the existing completions, because omitting part of the matching
> name (as opposed to the leading path) is a special condition that's
> not generally passed through all the layers of helper functions.
> (If you wanted to remove specific substrings like ".jpg" it could be
> done with a matcher-list zstyle, but I don't believe there's any way
> to configure a matcher-list for "anything following a dot".)
Actually the files do all have the same "suffix" but in this instance
I can just rename the files by removing everything after the dot,
which was superfluous information anyway.
Messages sorted by: