EL-MASTOR / bufferlist.nvim

The fastest, most lightweight, minimal, extensible and super easy buffer manager for neovim
37 stars 1 forks source link

Add More Information To The Buffer Name #5

Closed lethc closed 11 hours ago

lethc commented 6 days ago

I like your plugin. However, I've noticed that I usually open files with the same name in different directories and as you can see I got confused about which file I want to edit when I use your plugin, so I'd like you to consider add an option to show the path of the buffers. Thanks for your plugin by the way, it's really beautiful 👍️

EL-MASTOR commented 5 days ago

I like your plugin. However, I've noticed that I usually open files with the same name in different directories and as you can see I got confused about which file I want to edit when I use your plugin, so I'd like you to consider add an option to show the path of the buffers. Thanks for your plugin by the way, it's really beautiful 👍️

Hi, thank you so much for taking time to suggest new features for the plugin. I really appreciate it. Yes, I will add the ability to toggle between the way the buffer names are shown, one of them being the output of the command :f, or the cli command realpath --relative-to=neovim cwd. Which is the relative path to either the neovim cwd, or the home directory mostly. Which one to show first will also be configurable. This feature and more will be available in the next update in the next few days. Thank you again a lot for your suggestion. If you have any other awesome ideas, please let me know, I appreciate every suggestion.

oalders commented 5 days ago

Thanks for sharing your work. I wanted to 👍🏻 this suggestion. This is what I'm currently seeing and it's so confusing. 😅

Bildschirmfoto 2024-10-22 um 3 55 42 PM
EL-MASTOR commented 11 hours ago

I like your plugin. However, I've noticed that I usually open files with the same name in different directories and as you can see I got confused about which file I want to edit when I use your plugin, so I'd like you to consider add an option to show the path of the buffers. Thanks for your plugin by the way, it's really beautiful 👍️

Bufferlist.nvim has been updated. You can now toggle the relative path with toggle_path keymap, and show path first with show_path option. The update also introduces custom keymaps options, you can now add your own keymaps to the the BufferList and customize it to your liking. Check out the readme for more