unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Ludwig, Mark" <ludwig.mark@siemens.com>, help-gnu-emacs@gnu.org
Subject: RE: Allowing wildcards in Find file prompt that resolve to a single file?
Date: Fri, 27 Jun 2014 15:33:10 -0700 (PDT)	[thread overview]
Message-ID: <0a60a48f-2598-4da8-b1f0-b9f8787702f8@default> (raw)
In-Reply-To: <BC5672F8AD4C054BAF167C9801500D1AF5C9A451@USSLMMBX003.net.plm.eds.com>

> Has anyone made an enhancement or extension that would let a user
> specify wildcard(s) in the Find file prompt, as long as the
> wildcard(s) resolve to a single file?
> 
> The reason I want this is because we have numerous files that
> have uniqueness at the tail end (which is why TAB doesn't help).
> 
> Consider, for example, that there might be only file in each
> directory that ends with ".foo" (made-up example).  I would enter
> "dir1/dir2/*.foo" at the Find file prompt and have it find the
> one ".foo" file in dir2.  (The file name before ".foo" is a
> mangling of "dir1" and "dir2" for historical reasons.)

This is already the case.

C-x C-f dir1/dir2/*.foo RET

opens all files that match the glob pattern *.foo in that directory.
If there is only one such file, then it is the only one visited.

(Do not confuse glob-pattern matching with TAB-completion pattern
matching.)



      parent reply	other threads:[~2014-06-27 22:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27 15:28 Allowing wildcards in Find file prompt that resolve to a single file? Ludwig, Mark
2014-06-27 17:46 ` Glenn Morris
2014-06-27 22:33 ` Drew Adams [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0a60a48f-2598-4da8-b1f0-b9f8787702f8@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ludwig.mark@siemens.com \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).