Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vifm: show date/time in filelist

Tags:

linux

vifm

Is it possible to tell vifm to show date and time in the file list, like here? Currently is showing only file sizes. I want to add date too. I have found the command set timefmt=%m/%d\ %H:%M and put it in ~/.vifmrc, but the date is shown only for the selected file at the bottom.

like image 461
robert Avatar asked Feb 16 '17 07:02

robert


Video Answer


1 Answers

If you look closer at the screenshot, you'll notice that files are sorted. By default second column is dependent on the sorting and if you sort by modification date, that's what will be in it. So there was no special setup apart from setting sorting.

If you want to always display modification time before the size, add this to ~/.vifm/vifmrc (note that it's not~/.vifmrc if your post doesn't contain a typo):

set viewcolumns=*{name}..,16{mtime},7{}.

You might want to check documentation on 'viewcolumns' option and column view to understand the syntax.

like image 156
xaizek Avatar answered Oct 04 '22 12:10

xaizek