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

Show short path instead of filename only?

Open tmpm697 opened this issue 2 years ago • 2 comments

How can we display buffer with its short path like: ~/.con/nv/pa/d/s/vi/README.md (as full path of ~/.config/nvim/pack/default/start/vim-bufferline) instead of display only file name README.md?

this is because we can have multiple buffers with same filename, and showing path as above will help distinguish buffers better.

tmpm697 avatar Jan 01 '23 17:01 tmpm697

~~Btw powerline has some magic algorithm for path shortening~~ nvm, neovim succesfully does it ootb.

Also tab switcher really lacks details. I kinda can look at the tabline, but then the only point of Reach is to hint 10th+ tabs with letters. If reach could display tab titles i would disable the tabline and save some space which would be nice.

ShinyZero0 avatar Mar 24 '23 22:03 ShinyZero0

I've forked it and made tabs display the shortened filepath of current tab's buffer using plenary.path module. It's hardcoded, so not sure if i should contribute it, it even requires plenary (which everyone probably have already) now. I'm really bad at lua so i can't even understand what's going on in buffer selector module, so i can't implement it there

ShinyZero0 avatar Mar 25 '23 20:03 ShinyZero0