#92 Fix switch-buffer confusion

Closed
opened 1 month ago by nuclearkev · 0 comments

Normally, in GNU Emacs when you attempt to switch a buffer, the default is the last buffer you were on. It also appears to reorder them based on the order.

Currently, ait just keeps the order the same and the default buffer option is just whatever is the next buffer in the linked list. Sadly, the logic for the buffers isn't conducive to the GNU Emacs' style so there will likely be quite a bit of work required. Here are some ideas I have:

  • rewrite the buffer support to be different (don't like this idea)
  • have an array of indices that "reorder" the buffer linked list. We keep the memory in whatever order it's in and just reference the list of indices to see which buffer we're on (like this this)
  • put the buffers in an array and reorder it when there is a change (probably easier to understand)
Normally, in GNU Emacs when you attempt to switch a buffer, the default is the last buffer you were on. It also appears to reorder them based on the order. Currently, ait just keeps the order the same and the default buffer option is just whatever is the next buffer in the linked list. Sadly, the logic for the buffers isn't conducive to the GNU Emacs' style so there will likely be quite a bit of work required. Here are some ideas I have: - rewrite the buffer support to be different (don't like this idea) - have an array of indices that "reorder" the buffer linked list. We keep the memory in whatever order it's in and just reference the list of indices to see which buffer we're on (like this this) - put the buffers in an array and reorder it when there is a change (probably easier to understand)
Kevin "The Nuclear" Bloom referenced this issue from a commit 1 month ago
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.