ui icon indicating copy to clipboard operation
ui copied to clipboard

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

Open spiderpug opened this issue 6 months ago • 0 comments

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!

spiderpug avatar Aug 23 '24 12:08 spiderpug