Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

filtering columns when window is too small

0 votes
asked Apr 23 in vifm by Marco

Hello.

Is there a way to filter out certain columns if the window is too small?

E.g.:
When I have a large window, I would want to display:
{name}{uname}{gname}{perms}{size}{mtime} etc,

But as the window gets smaller, I don't need to see uname/gname/perms, but its important that the full filename is maintained.

Thanks

1 Answer

0 votes
answered Apr 23 by xaizek
edited Jul 29 by xaizek

Hi.

No, there isn't a mechanism for that (columns would need to be marked as "not important" in some way). However, you can use mappings to switch between different sets of columns:

" brief information about files
nnoremap <silent> ,b :set viewcolumns=*{name}..,6{}.<cr>
" detailed information about files
nnoremap <silent> ,d :set viewcolumns=*{name}.,10{perms},12{uname},-7{gname},10{size}.,20{mtime}<cr>

Edit: Related: issue #458 on GitHub.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...