daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

I cannot see the filename in the title bar #136

Open mcepl opened 5 years ago

mcepl commented 5 years ago

Describe the bug See this screenshot screenshot Wouldn't it be better if the title page contained only basename of the file name? Even more because the path to the current document file is just below it.

Technical information (please complete the following information):

daa84 commented 5 years ago

For me it works like described, it already implements to show only basename. It shows full path in case file does not in base directory. Maybe this is the case?

mcepl commented 5 years ago

Well, the problem is that /home/matej/Dokumenty is a symlink to /home/matej/archiv/2018/, so the comparison whether full path is in the base directory should be done on the absolute expanded file names (symlinks replaced by their targets, something like /usr/bin/readlink).