mihaifm/bufstop

wish: option to customize filenames

Closed this issue · 2 comments

when showing up list of open buffers, it is sometime very handy to exclude extensions so you can show up more files...

or, if you want to really get fancy, you could allow using help:filename-modifiers syntax to customize how files are shows, as bufferline does with bufferline_fname_mod option.

thanks for this great plugin!

sounds reasonable, I'll add a filename modifier option when I get the chance

Fixed: 7548510

To use it, implement g:BufstopFileFormatFunc in your vimrc:

let g:BufstopFileFormatFunc = 'MyBufstopFileFormat'
function! MyBufstopFileFormat(shortname)
  return fnamemodify(a:shortname, ':t:r')
endfunc