bufexplorer icon indicating copy to clipboard operation
bufexplorer copied to clipboard

Show the list of buffers by user specified parameter, e.g. filename

Open rerrabolu opened this issue 1 year ago • 5 comments

I just installed the plugin and see that the window has at least 4 fields: Filename, FullPath, Buffer Id, etc

Is there a way to show the list of buffers with user set parameters only. For example, I would like to open the list with only bufferId and fileName. If this can already be done could you please specify how to encode that preference in the vimrc file.

Regards, Ramesh

rerrabolu avatar Aug 23 '24 19:08 rerrabolu

Hello. At this time there is no way to provide that... However, your suggestion is an interesting thought for future development...

jlanzarotta avatar Sep 17 '24 11:09 jlanzarotta

I would find this useful too, as I only use BufExplorer to switch between files.

Just being able to see the path - filename and directory - would be a cleaner user experience for this scenario. I mentally ignore the other columns - to the point where I've forgotten what the values mean.

One advantage: more horizontal space for long filenames / directories - especially for vsplit usage.

benthorner avatar Mar 29 '25 19:03 benthorner

Coincidentally, I've been looking at this issue to work on next. I believe I see how to allow for end-user customization of the columns.

drmikehenry avatar Mar 29 '25 23:03 drmikehenry

BufExplorer 7.12.0 (released 2025-04-11) now has support for configurable columns via the g:bufExplorerColumns variable. For example, to show only the buffer's number and path, add the below to your vimrc:

let g:bufExplorerColumns = ['number', 'splittablepath']

Or to show only the buffer's path, add the below to your vimrc:

let g:bufExplorerColumns = ['splittablepath']

See :help g:bufExplorerColumns to read more details in BufExplorer's help.

drmikehenry avatar Apr 15 '25 23:04 drmikehenry

Just tried this out: can confirm it works ✅.

Thanks for taking the time to make this happen 🌟.

benthorner avatar Apr 16 '25 08:04 benthorner