#92 Fix switch-buffer confusion

Uzavrená
otvorené 1 mesiac pred užívateľom nuclearkev · 0 komentárov

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 sa odvolal na túto issue z commitu 1 mesiac pred
Prihláste sa pre zapojenie do konverzácie.
Načítavanie...
Zrušiť
Uložiť
Zatiaľ neexistuje žiadny obsah.