nyxt
nyxt copied to clipboard
Auto refresh list-buffers buffer on changes
A draft was submitted in #1035.
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.
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.
Maybe. I'll need more time with this. Perhaps a practical implementation will change my mind.
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?
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!
I'm suggesting that the list-buffers
buffer watches on (buffers *browser*)
and automatically refreshes on every change.
I see. No strong opinion. But we all agree that deleting buffers from list-buffers
should update it.
OT: How to 'fix' ibuffer:
(add-hook 'ibuffer-mode-hook #'ibuffer-auto-mode)
Useful now.
To close this issue, a similar approach to what @MaxGyver83 did in #3199 should be taken.