nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Auto refresh list-buffers buffer on changes

Open Ambrevar opened this issue 3 years ago • 9 comments

A draft was submitted in #1035.

Ambrevar avatar Apr 16 '21 16:04 Ambrevar

Why would we want auto refresh? I don't agree with this premise. Everything should only occur on-demand, in my opinion. Maybe I am too influenced by the behavior of emacs, but that is what I think.

jmercouris avatar Apr 16 '21 16:04 jmercouris

I think presenting the user with an outdated state of things is confusing. Emacs does not shine with its accessibility and I believe Nyxt should do better here.

Ambrevar avatar Apr 16 '21 16:04 Ambrevar

Maybe. I'll need more time with this. Perhaps a practical implementation will change my mind.

jmercouris avatar Apr 16 '21 16:04 jmercouris

Maybe I am too influenced by the behavior of emacs, but that is what I think.

What happens when you kill a buffer from list-buffers or ibuffer in Emacs?

aadcg avatar Apr 19 '21 08:04 aadcg

When I kill a buffer from this ibuffer, something happens, when it is killed from elsewhere, nothing happens. It would be no issue to wrap each delete button on list-buffers with (progn (delete-buffer xyz) (list-buffers)). I think Pierre is suggesting something different than what your original PR sought to achieve!

jmercouris avatar Apr 19 '21 08:04 jmercouris

I'm suggesting that the list-buffers buffer watches on (buffers *browser*) and automatically refreshes on every change.

Ambrevar avatar Apr 19 '21 08:04 Ambrevar

I see. No strong opinion. But we all agree that deleting buffers from list-buffers should update it.

aadcg avatar Apr 19 '21 08:04 aadcg

OT: How to 'fix' ibuffer:

(add-hook 'ibuffer-mode-hook #'ibuffer-auto-mode)

Useful now.

PhilHudson avatar Oct 17 '21 09:10 PhilHudson

To close this issue, a similar approach to what @MaxGyver83 did in #3199 should be taken.

aadcg avatar Oct 22 '23 16:10 aadcg