zsh-users
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
To: J <jean.chalard@laposte.net>
Cc: Kai Grossjohann <kai@emptydomain.de>, zsh-users@sunsite.dk
Subject: Re: filename cycling according to age, not name
Date: Wed, 30 Jun 2004 16:13:05 +0200	[thread overview]
Message-ID: <866599xhfy.fsf@rumba.de.uu.net> (raw)
In-Reply-To: <20040630135505.GA13539@laposte.net> (J.'s message of "Wed, 30 Jun 2004 15:55:05 +0200")

J <jean.chalard@laposte.net> writes:

> - If you want this only occasionnally on a set of commands, you can't
>   resort to the last method. You may use directly the globbing pattern
>   I indicated, plus a range indicator : *(om[1]) is the last modified
>   file in the directory, *(om[2]) the second last one, and *(om[1,2])
>   the two first ones, most recent first. Then you can define a global
>   alias for it, and/or bind a key to this in zle.

This sounds as if

    less log.a/*(om[1])

would show me the newest file in that directory.  That is not what
I'm looking for, but not too bad, either.  Hm.  Perhaps a function
"lessnew" expecting a directory and an optional number would do the
trick.

But if somebody knows the exact feature I was asking for, that would
be better.

Kai


  parent reply	other threads:[~2004-06-30 14:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-30 13:38 Kai Grossjohann
2004-06-30 13:44 ` Kai Grossjohann
     [not found] ` <20040630135505.GA13539@laposte.net>
2004-06-30 14:13   ` Kai Grossjohann [this message]
2004-06-30 16:05 ` Bart Schaefer

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=866599xhfy.fsf@rumba.de.uu.net \
    --to=kai@emptydomain.de \
    --cc=jean.chalard@laposte.net \
    --cc=zsh-users@sunsite.dk \
    /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).