Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show short path instead of filename only? #18

Open
tmpm697 opened this issue Jan 1, 2023 · 2 comments
Open

Show short path instead of filename only? #18

tmpm697 opened this issue Jan 1, 2023 · 2 comments

Comments

@tmpm697
Copy link

tmpm697 commented Jan 1, 2023

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.

@ShinyZero0
Copy link

ShinyZero0 commented Mar 24, 2023

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
Copy link

ShinyZero0 commented Mar 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants