Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Qmail-Scanner-Diagnostics: from 195.159.176.226 by f.primenet.com.au (envelope-from <gcszd-zsh-workers@m.gmane.org>, uid 7791) with qmail-scanner-2.11 
 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1.  
 Clear:RC:0(195.159.176.226):SA:0(1.3/5.0):. 
 Processed in 0.108907 secs); 19 Aug 2016 12:11:16 -0000
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: *
X-Spam-Status: No, score=1.3 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN,
	FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RDNS_NONE autolearn=no
	autolearn_force=no version=3.4.1
X-Envelope-From: gcszd-zsh-workers@m.gmane.org
X-Qmail-Scanner-Mime-Attachments: |
X-Qmail-Scanner-Zip-Files: |
Received-SPF: none (ns1.primenet.com.au: domain at m.gmane.org does not designate permitted sender hosts)
X-Injected-Via-Gmane: http://gmane.org/
To: zsh-workers@zsh.org
From: Christian Neukirchen <chneukirchen@gmail.com>
Subject: _path_files in numeric order
Date: Fri, 19 Aug 2016 13:53:51 +0200
Lines: 17
Message-ID: <874m6h9dps.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@blaine.gmane.org
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
X-Seq: zsh-workers 39066

Hi,

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"

in _path_files, below the *rev* and *follow* things.

If anyone has a less invasive method, please tell me.  Else, I propose
to add this feature (or alternatively, a way to inject own sorting
flags directly).

Thanks,
-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org

