help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Allowing wildcards in Find file prompt that resolve to a single file


From: Drew Adams
Subject: RE: Allowing wildcards in Find file prompt that resolve to a single file?
Date: Fri, 27 Jun 2014 15:33:10 -0700 (PDT)

> 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.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]