How to see the end of very long filenames?
For filenames that are longer than the statusbar and a single pane?
Could there be something like a preview pane for filenames, where the filename is shown on several line?
Another thing I wanted to suggest to you on reddit is to press Ctrl+G, but I tested it and long lines are just chopped. And horizontal scrolling doesn't work there, because it's a full screen dialog rather than a menu.
Another quite awful workaround:
:set wrap :!echo %c%q
Beautiful !!!
Thanks alot :-)
Maybe one more thing ...
is there a way to make this preview persistent when scrolling through files ?
ie, having a toglleable file preview for all filetypes that overrides their usual file preview settings?
thanks
You could temporarily set 'previewprg' option:
'previewprg'
:set previewprg='echo %c%q'
Maybe use :setl to have it reset on switching directory or use something like this:
:setl
nnoremap <silent> ,p : if &previewprg == '' \| set previewprg='echo %c%q' \| else \| set previewprg='' \| endif<cr>
This works great !!!
thank you very much (and also for your help on reddit) !!!
Made one more addition to your command, to set vertical split mode and view mode:
nnoremap <silent> ,p : if &previewprg == '' \| :vsplit \| :view \| set previewprg='echo %c%q' \| else \| set previewprg='' \| endif<cr>
How about set viewcolumns=*{name}..?
set viewcolumns=*{name}..
In this case this wasn't enough, the window might not be large enough to fit the whole file name.
Well, anonymous user has asked how to see an end of "very long filenames". I have tested an approach with asterisk and it seems to do the job:
The trimmed file is 89 symbols long.