Search code examples
linuxvifm

vifm: show date/time in filelist


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.


Solution

  • 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.