Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _path_files in numeric order
- X-seq: zsh-workers 39075
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: _path_files in numeric order
- Date: Fri, 19 Aug 2016 10:34:15 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=9P9P17lC7Z9y64RBfX8EsvBhlRJDIk932A3TYory9rY=; b=XNiylQjfJ7GAt9ntPWnA3xgir2di96z3NRiGMEXGJlheydkR4jELiN65VrCquREuYD tSQhUIJ0Hzyju1+FyfTcbB7Apsod5dreDeJMlzNCWk7FobRpW1vpIqn2TPQe0tmN05fC KljEPus4QsdzXX2o37fLmVreKTvYUFyEfZXmvcNR0BqhNjMm5yR3iR2w+Wjx6Jk3ynzE SUQJS0lqbcRmuBcJM8NWwjNuqS2VsaQNjgRb7KsjdUgpSN3Z0Hp2vfvYaIZR7LAc3W8c TImwffCmv56hiR827pcV8sgmIDB0Q/LW+i4TAV+PI5EAgJTaaQmunCaEnoKcvngKXgh/ V5+w==
- In-reply-to: <874m6h9dps.fsf@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author