all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Arthur Miller <arthur.miller@live.com>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
	42578@debbugs.gnu.org, Marco Wahl <marcowahlsoft@gmail.com>
Subject: bug#42578: 28.0.50; [suggestion] allow dired-do-shell-command on directory line
Date: Wed, 29 Jul 2020 09:29:57 -0700 (PDT)	[thread overview]
Message-ID: <5fa7b986-e2cb-4bce-9a4d-a0d9e71c7b40@default> (raw)
In-Reply-To: <VI1PR06MB45265AAE7A148C417F1A437E96700@VI1PR06MB4526.eurprd06.prod.outlook.com>

All that you suggest is fine to suggest, IMO.
I didn't mean to discourage such suggestion.

It's true that a dir heading has few associated
actions, by default.  (Movement among such headings
is about the only such action, I think, by default.)

It's also true that to act on a dir/subdir you
generally need to be on its `.' line.  Or else (for
some other commands) it doesn't matter where, within
its listing, you are.

I personally don't have a problem with the default
behavior of `M-<' or `C-<home' moving to the
beginning of the buffer (as in other buffers).  But
if you think a better default behavior would be to
move to its `.' line, then suggest that.  (Vanilla
Emacs also doesn't allow most actions on `.', but
that's a different problem/story.)

In that case, you'd probably want dir navigation
keys (`C-M-n' etc.) to also move to the `.' line
of a dir listing, and not to the heading line.

In a way, a dir heading line and its `.' line
both represent the same thing.  One shows the dir
name (absolute), and the other shows the attributes
(permissions, date, size etc.).

I also agree that there's room for further enhancing
Dired.  In particular, some of the commands that act
by default relative to the top-most directory listed
(e.g. `find-name-dired') could instead act by default
on the subdir of the listing where point is.

E.g., `M-x find-name-dired' could use, as default,
the subdir of the current listing (wrt point).

Whether such a change would be for the better, I
don't know.  But it's possible, and maybe worth
thinking about.  One thing you might do is code such
changes for your own use (e.g. a mini-library), and
try it for a while.

So far, dir headings are just that: they serve only
to identify a particular listing within the buffer,
and they serve as movement destinations, when moving
among such listings.

(Dired+, unlike vanilla Emacs, allows some actions
on `.' and `..'.  But it too doesn't bother to do
so on a heading line.  IOW, it doesn't treat a
heading line the same as the `.' line.)





  reply	other threads:[~2020-07-29 16:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-28 10:36 bug#42578: 28.0.50; [suggestion] allow dired-do-shell-command on directory line Marco Wahl
2020-07-28 18:34 ` Basil L. Contovounesios
2020-07-28 19:09   ` Marco Wahl
2020-07-28 20:20     ` Drew Adams
2020-07-28 21:04       ` Marco Wahl
2020-07-29  7:49         ` Michael Albinus
2020-07-29 11:55           ` Marco Wahl
2020-07-29 12:11             ` Michael Albinus
2020-07-29 12:33               ` Marco Wahl
2020-07-29 14:16                 ` Michael Albinus
2020-07-30 10:23                   ` Marco Wahl
2020-07-31 14:24                     ` Marco Wahl
2020-07-29  0:17 ` arthur miller
2020-07-29 15:31   ` Drew Adams
2020-07-29 15:59     ` Arthur Miller
2020-07-29 16:29       ` Drew Adams [this message]
2020-07-29 18:02         ` Arthur Miller

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=5fa7b986-e2cb-4bce-9a4d-a0d9e71c7b40@default \
    --to=drew.adams@oracle.com \
    --cc=42578@debbugs.gnu.org \
    --cc=arthur.miller@live.com \
    --cc=contovob@tcd.ie \
    --cc=marcowahlsoft@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.