zsh-users
 help / color / mirror / code / Atom feed
From: Eric Smith <es@fruitcom.com>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: function to return most recently modified file to command line
Date: Tue, 23 Dec 2003 00:56:58 +0100	[thread overview]
Message-ID: <20031222235658.GA18521@fruitcom.com> (raw)

I would like to have a function ideally to bind to a key combination
that returns the most recent file to the command line.

Like I might type
$ acroread <Alt-B>

would give

$ acroread todays_news.pdf

A couple of nice extra features would be:
Specify the type of file say `pdf' or `txt' for the latest instance
of that type of file.
Also the function could automatically add an <enter> after returning the
filename.

thanx!

-- 
Eric Smith


             reply	other threads:[~2003-12-22 23:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-22 23:56 Eric Smith [this message]
2003-12-23  1:08 ` Oliver Kiddle
2004-01-11 16:15   ` function to return most recently modified file to command line - cycling in both directions Eric Smith - Fruitcom
2004-01-14 16:07     ` Oliver Kiddle

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=20031222235658.GA18521@fruitcom.com \
    --to=es@fruitcom.com \
    --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).