GNU bug report logs - #61785
[PATCH] Add option to keep some columns in dired-hide-details-mode

Previous Next

Package: emacs;

Reported by: Augusto Stoffel <arstoffel <at> gmail.com>

Date: Sat, 25 Feb 2023 11:31:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#61785: closed ([PATCH] Add option to keep some columns in
 dired-hide-details-mode)
Date: Thu, 02 Mar 2023 12:05:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 02 Mar 2023 14:04:05 +0200
with message-id <83bklbe4wa.fsf <at> gnu.org>
and subject line Re: bug#61785: [PATCH] Add option to keep some columns in dired-hide-details-mode
has caused the debbugs.gnu.org bug report #61785,
regarding [PATCH] Add option to keep some columns in dired-hide-details-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
61785: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61785
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Augusto Stoffel <arstoffel <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add option to keep some columns in dired-hide-details-mode
Date: Sat, 25 Feb 2023 12:30:14 +0100
[Message part 3 (text/plain, inline)]
Tags: patch

I find the normal dired buffer a bit too busy but
dired-hide-details-mode a bit too lacking.  So I'd like show only the
details I care most about, for instance like this:

--8<---------------cut here---------------start------------->8---
  /home/augusto/emacs:
  4.0K Feb 25 .
  4.0K Feb 20 ..
  4.0K Feb 25 admin
  4.0K Feb 20 autom4te.cache
  4.0K Feb 25 build-aux
  3.6K Feb 20 aclocal.m4
   11K Feb 25 autogen.sh
   932 Jun  6 BUGS
  ...
--8<---------------cut here---------------end--------------->8---

The above can be obtained by setting

  (setq dired-hide-details-preserved-columns '(5 6 7))

After writing this, I realized one could easily modify the new user
option to be an alist mapping column numbers to arbitrary text
properties to be applied to that column.  If anyone thinks this variant
is useful, I'd be happy to adapt the patch.

[0001-Add-option-to-keep-some-columns-in-dired-hide-detail.patch (text/patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Augusto Stoffel <arstoffel <at> gmail.com>
Cc: 61785-done <at> debbugs.gnu.org
Subject: Re: bug#61785: [PATCH] Add option to keep some columns in
 dired-hide-details-mode
Date: Thu, 02 Mar 2023 14:04:05 +0200
> From: Augusto Stoffel <arstoffel <at> gmail.com>
> Date: Sat, 25 Feb 2023 12:30:14 +0100
> 
> I find the normal dired buffer a bit too busy but
> dired-hide-details-mode a bit too lacking.  So I'd like show only the
> details I care most about, for instance like this:
> 
> --8<---------------cut here---------------start------------->8---
>   /home/augusto/emacs:
>   4.0K Feb 25 .
>   4.0K Feb 20 ..
>   4.0K Feb 25 admin
>   4.0K Feb 20 autom4te.cache
>   4.0K Feb 25 build-aux
>   3.6K Feb 20 aclocal.m4
>    11K Feb 25 autogen.sh
>    932 Jun  6 BUGS
>   ...
> --8<---------------cut here---------------end--------------->8---
> 
> The above can be obtained by setting
> 
>   (setq dired-hide-details-preserved-columns '(5 6 7))
> 
> After writing this, I realized one could easily modify the new user
> option to be an alist mapping column numbers to arbitrary text
> properties to be applied to that column.  If anyone thinks this variant
> is useful, I'd be happy to adapt the patch.

Thanks, installed on the master branch.  Feel free to post further
enhancements if you think they will be useful.


This bug report was last modified 2 years and 136 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.