-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer reordering #3707
Comments
I'm working on implementing this, do you reckon having just a "move currently active document left/right" command would be good? And what keybinds should it use? I was thinking we could change "Select symbol references" to something else and use |
Looking into it Kakoune went with a specialised command that would take a list of buffers and put them at the front in order: https://discuss.kakoune.com/t/brainstorm-for-a-more-flexible-buffer-list/767/9. I think this is a good idea, it should work quite well with command completions. I do feel like there should also be an option to move buffers to the end, should that just be a separate command? like |
Also in terms of implementation do you think it might be a good idea to use a different collection for this? Because currently my code for swapping 2 documents removes them both from the map and then inserts them back in each others previous ID. I'm not sure if we even documents to retain their ids between operations, anywhere we use document ids we get an id and then immediately throw it away — we might be able to get away with just a |
also if we do want a move left/right we could use the |
I would also need this feature. Moving a tab left / right would be enough for me. I don't know about the default keybinding but if there are two associated commands, I could map them to what I like. Moving a tab to the first and last place would be a plus, but moving to left / right would be enough for me. |
This comment was marked as spam.
This comment was marked as spam.
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
With the new bufferline feature introduced by #2759, the order of buffers becomes much more apparent and important. As a result, I feel it necessary to have commands that can be used to reorder buffers. Unfortunately, it would appear that the data structure currently used to store buffers,
BTreeMap
, does not allow its data to be in an arbitrary order.The text was updated successfully, but these errors were encountered: