Skip to content
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

tabufline: close_buffer could open the last used buffer, not the last in the list? #329

Open
spiderpug opened this issue Aug 23, 2024 · 0 comments

Comments

@spiderpug
Copy link

I'm working with multiple buffers open at the same time: file1.txt, file2.txt and file3.txt. I work in the buffer file2.txt, which is located in the middle of the buffer list:

file1.txt [X]  |  file2.txt [X] {focused}  |  file3.txt [X]

I'm using gf to open a new buffer (file4.txt) to check out some source code,

file1.txt [X]  |  file2.txt [X]  |  file3.txt [X]  |  file4.txt {focused}

then close this new buffer with <leader>x (or close_buffer().

actual:

file1.txt [X]  |  file2.txt [X]  |  file3.txt [X] {focused}

Describe the solution you'd like

I would like to go back to file2.txt instead of file3.txt's buffer:

desired:

file1.txt [X]  |  file2.txt [X] {focused}  |  file3.txt [X]

Is there already a way to do this?
Thanks!

@siduck siduck transferred this issue from NvChad/NvChad Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant