#92 Fix switch-buffer confusion

クローズ
4 ヶ月 前nuclearkev によって開かれました · 0 コメント
Kevin "The Nuclear" Bloom4 ヶ月 前 にコメントしました

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 この課題がコミット 4 ヶ月 前 から参照されました
nuclearkev 4 ヶ月 前 に閉じられました
会話に参加するには サインイン してください。
読み込み中…
キャンセル
保存
まだコンテンツがありません