barbar.nvim icon indicating copy to clipboard operation
barbar.nvim copied to clipboard

[Feature Request] :BufferRestore

Open queensferryme opened this issue 3 years ago • 1 comments

Modern code editors tend to have functionality for restoring closed tabs. I believe it would be helpful to provide a similar command :BufferRestore in barbar.nvim.

Generally we can maintain a local stack of closed files. Upon :BufferRestore, we can pop and reopen the file on top of the stack. It would be even better if we memorize information like cursor position in the stack.

BTW, thanks for you work on this wonderful project!

queensferryme avatar Nov 07 '21 03:11 queensferryme

Right. I actually have the feature implemented separately in my own config but it would indeed be ideal to have it in the plugin.

romgrk avatar Jan 09 '22 18:01 romgrk

I use vim sessions, but it does not work very well. Currently trying to figure out how to get my file tree to not appear as a tab

Feel-ix-343 avatar Jan 03 '23 16:01 Feel-ix-343

@Feel-ix-343 this issue is unrelated to that request. Try https://github.com/romgrk/barbar.nvim/pull/347, and if that doesn't help, open a separate issue

Iron-E avatar Jan 03 '23 16:01 Iron-E