* Dired narrowing?
@ 2004-10-03 6:22 bgm-rao
0 siblings, 0 replies; 5+ messages in thread
From: bgm-rao @ 2004-10-03 6:22 UTC (permalink / raw)
How do I narrow a dired buffer to see only files with a regexp name?
Regards,
Madhu
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.995.1096784999.2017.help-gnu-emacs@gnu.org>]
* Re: Dired narrowing?
[not found] <mailman.995.1096784999.2017.help-gnu-emacs@gnu.org>
@ 2004-10-03 7:43 ` Alexandre Russel
2004-10-03 15:18 ` Bill White
1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Russel @ 2004-10-03 7:43 UTC (permalink / raw)
bgm-rao@ieee.org writes:
> How do I narrow a dired buffer to see only files with a regexp
> name?
what about M-x find-grep-dired
that would call the following function:
find-grep-dired is an interactive compiled Lisp function in `find-dired'.
(find-grep-dired dir regexp)
Find files in dir containing a regexp regexp and start Dired on output.
The command run (after changing into dir) is
find . -exec grep -s -e regexp {} \; -ls
Thus ARG can also contain additional grep options.
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dired narrowing?
[not found] <mailman.995.1096784999.2017.help-gnu-emacs@gnu.org>
2004-10-03 7:43 ` Alexandre Russel
@ 2004-10-03 15:18 ` Bill White
2004-10-03 17:51 ` Drew Adams
1 sibling, 1 reply; 5+ messages in thread
From: Bill White @ 2004-10-03 15:18 UTC (permalink / raw)
On Sun Oct 03 2004 at 01:22, bgm-rao@ieee.org said:
> How do I narrow a dired buffer to see only files with a regexp name?
I someone has a shorter sequence for this, please post it. I use a
three-command sequence:
'% m' to mark the files you want. To mark .txt files, the regexp
would be "\.txt" or perhaps "\.txt$" (without the quotes). ^ matches
the beginning of a file name, not the beginning of a dired line. To
mark temp* you might do "^temp".
't' to invert the marks, so the ones you *don't* want are marked.
'k' to kill the marked lines (this doesn't delete files, it just
removes listings temporarily from the dired listing).
----------------------------------------------------------------------
'% m' is dired-mark-files-regexp
,----[ C-h f dired-mark-files-regexp RET ]
| dired-mark-files-regexp is an interactive compiled Lisp function in `dired'.
| (dired-mark-files-regexp REGEXP &optional MARKER-CHAR)
|
| Mark all files matching REGEXP for use in later commands.
| A prefix argument means to unmark them instead.
| `.' and `..' are never marked.
|
| REGEXP is an Emacs regexp, not a shell wildcard. Thus, use `\.o$' for
| object files--just `.o' will mark more than you might think.
`----
't' is dired-toggle-marks
,----[ C-h f dired-toggle-marks RET ]
| dired-toggle-marks is an interactive compiled Lisp function in `dired'.
| (dired-toggle-marks)
|
| Toggle marks: marked files become unmarked, and vice versa.
| Files marked with other flags (such as `D') are not affected.
| `.' and `..' are never toggled.
| As always, hidden subdirs are not affected.
`----
'k' is dired-do-kill-lines
,----[ C-h f dired-do-kill-lines RET ]
| dired-do-kill-lines is an interactive compiled Lisp function in `dired-aux'.
| (dired-do-kill-lines &optional ARG FMT)
|
| Kill all marked lines (not the files).
| With a prefix argument, kill that many lines starting with the current line.
| (A negative argument kills backward.)
| If you use this command with a prefix argument to kill the line
| for a file that is a directory, which you have inserted in the
| Dired buffer as a subdirectory, then it deletes that subdirectory
| from the buffer as well.
| To kill an entire subdirectory (without killing its line in the
| parent directory), go to its directory header line and use this
| command with a prefix argument (the value does not matter).
`----
bw
--
Bill White . billw@mchsi.com . http://members.wri.com/billw
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Dired narrowing?
2004-10-03 15:18 ` Bill White
@ 2004-10-03 17:51 ` Drew Adams
0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2004-10-03 17:51 UTC (permalink / raw)
Shortcut:
Command dired-mark-extension is bound to `* .'.
Use it to mark all files with a particular extension (such as txt).
- Drew
-----Original Message-----
From: Bill White
On Sun Oct 03 2004 at 01:22, bgm-rao@ieee.org said:
> How do I narrow a dired buffer to see only files with a regexp name?
I someone has a shorter sequence for this, please post it. I use a
three-command sequence:
'% m' to mark the files you want. To mark .txt files, the regexp
would be "\.txt" or perhaps "\.txt$" (without the quotes). ^ matches
the beginning of a file name, not the beginning of a dired line. To
mark temp* you might do "^temp".
't' to invert the marks, so the ones you *don't* want are marked.
'k' to kill the marked lines (this doesn't delete files, it just
removes listings temporarily from the dired listing).
----------------------------------------------------------------------
'% m' is dired-mark-files-regexp
,----[ C-h f dired-mark-files-regexp RET ]
| dired-mark-files-regexp is an interactive compiled Lisp function in
`dired'.
| (dired-mark-files-regexp REGEXP &optional MARKER-CHAR)
|
| Mark all files matching REGEXP for use in later commands.
| A prefix argument means to unmark them instead.
| `.' and `..' are never marked.
|
| REGEXP is an Emacs regexp, not a shell wildcard. Thus, use `\.o$' for
| object files--just `.o' will mark more than you might think.
`----
't' is dired-toggle-marks
,----[ C-h f dired-toggle-marks RET ]
| dired-toggle-marks is an interactive compiled Lisp function in `dired'.
| (dired-toggle-marks)
|
| Toggle marks: marked files become unmarked, and vice versa.
| Files marked with other flags (such as `D') are not affected.
| `.' and `..' are never toggled.
| As always, hidden subdirs are not affected.
`----
'k' is dired-do-kill-lines
,----[ C-h f dired-do-kill-lines RET ]
| dired-do-kill-lines is an interactive compiled Lisp function in
`dired-aux'.
| (dired-do-kill-lines &optional ARG FMT)
|
| Kill all marked lines (not the files).
| With a prefix argument, kill that many lines starting with the current
line.
| (A negative argument kills backward.)
| If you use this command with a prefix argument to kill the line
| for a file that is a directory, which you have inserted in the
| Dired buffer as a subdirectory, then it deletes that subdirectory
| from the buffer as well.
| To kill an entire subdirectory (without killing its line in the
| parent directory), go to its directory header line and use this
| command with a prefix argument (the value does not matter).
`----
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.1053.1096826326.2017.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2004-10-04 20:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-03 6:22 Dired narrowing? bgm-rao
[not found] <mailman.995.1096784999.2017.help-gnu-emacs@gnu.org>
2004-10-03 7:43 ` Alexandre Russel
2004-10-03 15:18 ` Bill White
2004-10-03 17:51 ` Drew Adams
[not found] <mailman.1053.1096826326.2017.help-gnu-emacs@gnu.org>
2004-10-04 20:42 ` Robert Mecklenburg
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).