Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
conditionally match part of file name to most recently modified file
- X-seq: zsh-users 11582
- From: Eric Smith <es@xxxxxxxxxxxx>
- To: zsh users <zsh-users@xxxxxxxxxx>
- Subject: conditionally match part of file name to most recently modified file
- Date: Sun, 17 Jun 2007 23:16:44 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Zshers,
I want to be able to type
"vim foo"
in order to edit the last file whose name contains the string
"foo".
I guess this might be achieved with compdef and compadd
with the *(om[1]).
The function would only do all this when
the condition of a complete filename is not met.
thanks
--
Eric Smith
Messages sorted by:
Reverse Date,
Date,
Thread,
Author