GNU bug report logs -
#73047
30.0.90; feature request - add recency column to ibuffer
Previous Next
Reported by: Daniel Mendler <mail <at> daniel-mendler.de>
Date: Thu, 5 Sep 2024 15:30:02 UTC
Severity: wishlist
Found in version 30.0.90
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73047 in the body.
You can then email your comments to 73047 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73047
; Package
emacs
.
(Thu, 05 Sep 2024 15:30:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daniel Mendler <mail <at> daniel-mendler.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 05 Sep 2024 15:30:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Dear Emacs maintainers,
I want to propose the addition of an optional recency column to Ibuffer,
which shows the last buffer display time. Sorting by recency is already
supported by Ibuffer (ibuffer-do-sort-by-recency). I use the following
code in my configuration:
(defvar-keymap ibuffer-recency-header-map
"<mouse-1>" #'ibuffer-do-sort-by-recency)
(define-ibuffer-column recency
(:inline t :summarizer ignore :header-mouse-map ibuffer-recency-header-map)
(if-let ((time (buffer-local-value 'buffer-display-time buffer)))
(progn
(require 'marginalia)
(marginalia--time (buffer-local-value 'buffer-display-time buffer)))
"never"))
The time string is formatted in a human readable form, relative to to
the current time, e.g., "2 mins ago", "30 secs ago" or "never". I use
the function from the Marginalia package from GNU ELPA for formatting
right now. As far as I know Emacs does not yet provide a relative time
formatting function? Maybe there is interest in adding marginalia--time
to Emacs, e.g., with the name format-time-relative? As far as I know,
multiple packages define a similar formatting function, such that we
could potentially get some code reuse. The function could be ported
back via Compat to make it available to ELPA packages.
Thank you!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73047
; Package
emacs
.
(Thu, 05 Sep 2024 16:39:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 73047 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On Sep 5, 2024, at 11:28 AM, Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors <bug-gnu-emacs <at> gnu.org> wrote:
>
> As far as I know, multiple packages define a similar formatting function, such that we
> could potentially get some code reuse.
Definitely agree. See bug#71572 <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71572#72>, which includes such a formatting function, heavily discussed, but not yet merged.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73047
; Package
emacs
.
(Thu, 05 Sep 2024 17:39:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 73047 <at> debbugs.gnu.org (full text, mbox):
JD Smith <jdtsmith <at> gmail.com> writes:
>> On Sep 5, 2024, at 11:28 AM, Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors <bug-gnu-emacs <at> gnu.org> wrote:
>>
>> As far as I know, multiple packages define a similar formatting function, such that we
>> could potentially get some code reuse.
>
> Definitely agree. See bug#71572 <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71572#72>, which includes such a formatting function, heavily discussed, but not yet merged.
That's great! Thank you for working on this function.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73047
; Package
emacs
.
(Sat, 28 Dec 2024 12:31:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 73047 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I've attached a patch to this mail which adds a recency column to
Ibuffer. It uses the `seconds-to-string' function with the READABLE
argument.
[0001-ibuffer-Define-recency-column.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73047
; Package
emacs
.
(Sat, 28 Dec 2024 12:51:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 73047 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Daniel Mendler <mail <at> daniel-mendler.de> writes:
> I've attached a patch to this mail which adds a recency column to
> Ibuffer. It uses the `seconds-to-string' function with the READABLE
> argument.
Please disregard the earlier patch, which was a wrong version. I've
attached a better patch to this mail. Thanks.
Daniel
[0001-ibuffer-Define-recency-column.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73047
; Package
emacs
.
(Sat, 11 Jan 2025 12:10:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 73047 <at> debbugs.gnu.org (full text, mbox):
> Cc: JD Smith <jdtsmith <at> gmail.com>
> Date: Sat, 28 Dec 2024 13:50:20 +0100
> From: Daniel Mendler via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Daniel Mendler <mail <at> daniel-mendler.de> writes:
>
> > I've attached a patch to this mail which adds a recency column to
> > Ibuffer. It uses the `seconds-to-string' function with the READABLE
> > argument.
>
> Please disregard the earlier patch, which was a wrong version. I've
> attached a better patch to this mail. Thanks.
Thanks. Should this be called out in NEWS?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73047
; Package
emacs
.
(Sat, 11 Jan 2025 12:25:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 73047 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Cc: JD Smith <jdtsmith <at> gmail.com>
>> Date: Sat, 28 Dec 2024 13:50:20 +0100
>> From: Daniel Mendler via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> Daniel Mendler <mail <at> daniel-mendler.de> writes:
>>
>> > I've attached a patch to this mail which adds a recency column to
>> > Ibuffer. It uses the `seconds-to-string' function with the READABLE
>> > argument.
>>
>> Please disregard the earlier patch, which was a wrong version. I've
>> attached a better patch to this mail. Thanks.
>
> Thanks. Should this be called out in NEWS?
Yes. I've added an entry to the NEWS file. See the updated patch
attached to this mail. Thanks.
Daniel
[0001-ibuffer-Define-recency-column.patch (text/x-diff, attachment)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 11 Jan 2025 13:07:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Daniel Mendler <mail <at> daniel-mendler.de>
:
bug acknowledged by developer.
(Sat, 11 Jan 2025 13:07:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 73047-done <at> debbugs.gnu.org (full text, mbox):
> From: Daniel Mendler <mail <at> daniel-mendler.de>
> Cc: 73047 <at> debbugs.gnu.org, jdtsmith <at> gmail.com
> Date: Sat, 11 Jan 2025 13:24:05 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Cc: JD Smith <jdtsmith <at> gmail.com>
> >> Date: Sat, 28 Dec 2024 13:50:20 +0100
> >> From: Daniel Mendler via "Bug reports for GNU Emacs,
> >> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >>
> >> Daniel Mendler <mail <at> daniel-mendler.de> writes:
> >>
> >> > I've attached a patch to this mail which adds a recency column to
> >> > Ibuffer. It uses the `seconds-to-string' function with the READABLE
> >> > argument.
> >>
> >> Please disregard the earlier patch, which was a wrong version. I've
> >> attached a better patch to this mail. Thanks.
> >
> > Thanks. Should this be called out in NEWS?
>
> Yes. I've added an entry to the NEWS file. See the updated patch
> attached to this mail. Thanks.
Thanks, installed on the master branch, and closing the bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 09 Feb 2025 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 128 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.