From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: _path_files in numeric order
Date: Fri, 19 Aug 2016 10:34:15 -0700 [thread overview]
Message-ID: <160819103415.ZM32601@torch.brasslantern.com> (raw)
In-Reply-To: <874m6h9dps.fsf@gmail.com>
On Aug 19, 1:53pm, Christian Neukirchen wrote:
}
} I was looking into how to make plain file name completion order "by
} version", ie. "foo1 foo9 foo10" and found this to be missing from the
} "file-sort" style. I think the easiest way to add this is to put
}
} [[ "$tmp1" = *numeric* ]] && sort="${sort}n"
This seems fine to me.
} If anyone has a less invasive method, please tell me.
The only other way to do this is to pass a glob with a qualifier to
the -g option of _path_files, which isn't controllable by zstyle in
any way I can think of.
prev parent reply other threads:[~2016-08-19 17:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 11:53 Christian Neukirchen
2016-08-19 17:34 ` Bart Schaefer [this message]
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=160819103415.ZM32601@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).