all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Charles Choi <kickingvegas@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Keen on a dired-hide-details-mode patch?
Date: Thu, 1 Aug 2024 12:39:26 -0700	[thread overview]
Message-ID: <E99DD6CB-18D5-44E1-86DF-4455F06D81AB@gmail.com> (raw)
In-Reply-To: <m2le1gb3y2.fsf@xenodium.com>

Alvaro - 

Yes, `dired-maybe-insert-subdir` is the command that inserts a subdir provided it is issued when the point is over a directory. For reference, I invoke it from Casual Dired from here https://github.com/kickingvegas/casual-dired/blob/4be72b52f91700cdb529a185b8f6f21bd0a86542/lisp/casual-dired.el#L76

Ideally your hiding code would show the relative pathname of a subdir when hiding is turned on, otherwise the fullpath.

Note that my current understanding of subdir behavior with default Dired is that it only supports subdirectories within the current parent directory. I vaguely recall there are other 3rd party packages that try to let you insert out-of-hierarchy subdirs. I don’t think it’s something you need to support, but this patch could potentially break such packages if pushed into core.

All my best -

Charles

—
Charles Y. Choi, Ph.D.
kickingvegas@gmail.com





> On Aug 1, 2024, at 9:31 AM, Alvaro Ramirez <alvaro@xenodium.com> wrote:
> 
> For the subdirs view in the screenshot you sent, I triggered it using `M-x dired-maybe-insert-subdir`. Lemme know if you're using a different mechanism.




  reply	other threads:[~2024-08-01 19:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-21 16:07 Keen on a dired-hide-details-mode patch? Alvaro Ramirez
2024-07-21 16:23 ` Eli Zaretskii
     [not found]   ` <m27cdehavc.fsf@xenodium.com>
2024-07-21 18:38     ` Alvaro Ramirez
2024-07-28 18:00       ` Alvaro Ramirez
2024-07-21 19:50 ` Yuri Khan
2024-07-21 20:13   ` Alvaro Ramirez
2024-07-21 20:19     ` Yuri Khan
2024-07-31 16:27       ` Alvaro Ramirez
2024-07-31 19:40         ` Charles Choi
2024-08-01 16:31           ` Alvaro Ramirez
2024-08-01 19:39             ` Charles Choi [this message]
2024-08-02 10:40               ` Alvaro Ramirez
2024-07-22 11:20     ` Eli Zaretskii
2024-07-22  6:29 ` Charles Choi

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=E99DD6CB-18D5-44E1-86DF-4455F06D81AB@gmail.com \
    --to=kickingvegas@gmail.com \
    --cc=emacs-devel@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.
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.