unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: what's the usefulness of dired-isearch-filenames ?
Date: Mon, 10 Aug 2009 07:13:53 -0700 (PDT)	[thread overview]
Message-ID: <6ee3c8c4-f86f-4f69-b04d-ee9c6ea33215@y10g2000prg.googlegroups.com> (raw)
In-Reply-To: h5nvor$ofc$1@rileyrgdev.eternal-september.org

Hi Richard,

On Aug 9, 7:05 pm, Richard Riley <rileyrg...@gmail.com> wrote:
> Xah Lee <xah...@gmail.com> writes:
> > in emacs 23's dired, there's
>
> >  dired-isearch-filenames   (Alt+s f Ctrl+s)
>
> > and
>
> >  dired-isearch-filenames-regexp (Alt+s f Ctrl+Alt+s)
>
> > what's the use for these?
>
> > user can simply do isearch (Ctrl+s) as usual, no?
>
> They can, but it might be a pain if the dired display contains words
> in, say, the group or owner fields which match.
>
> The command only searches filename text.

that seems too much trouble. It's rare that one'd need to search for a
file name where the string happens to be in the owner or group or date
output from “ls -l”.

A guy Eric informed me of this manual entry:

(info "(emacs) Dired Navigation")

which indicatse that if one puts:

(setq dired-isearch-filenames t)

then C-s will automacially just focus on the file names.
If one puts

(setq dired-isearch-filenames 'dwim)

then C-s it will focus on the file name only if the cursor is at file
names column, and on the whole dired text if the cursor is on the
other part.

This is fantastic.

Thinking about this, i think it'd be even better, if
(setq dired-isearch-filenames t)
behavior just always assumed.

I'm thinking that it's even better if C-s does what it always does,
and completely get rid of dired-isearch-filenames or dired-isearch-
filenames-regexp. Because i think these 2 functions are rarely needed,
and when user needs to search thru file names only, or with regex,
there are lots of ways with grep or variant methods that does it.

... am guessing things are the way it is now because i vaguely recall
in emacs dev list in recent months that emacs devers are moving dired-
x things into dired... so in a short rush to release emacs 23 (which
is great), not full thought has been put into this...

  Xah
∑ http://xahlee.org/

      reply	other threads:[~2009-08-10 14:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-10  1:57 what's the usefulness of dired-isearch-filenames ? Xah Lee
2009-08-10  2:05 ` Richard Riley
2009-08-10 14:13   ` Xah Lee [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=6ee3c8c4-f86f-4f69-b04d-ee9c6ea33215@y10g2000prg.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).