add timefmt option for time format in status line

Mentioned in #41.
This commit is contained in:
Gokcehan committed 2016-11-21 23:13:33 +03:00
1 parent fdf8e9d480
commit c8202bbc7a
6 files changed
+26 -18

No files matched your search

+1 -2
View File
@@ -13,7 +13,6 @@ import (
"strconv"
"strings"
"text/tabwriter"
"time"
"unicode/utf8"
"github.com/nsf/termbox-go"
@@ -405,7 +404,7 @@ func (ui *UI) loadFile(nav *Nav) {
return
}
ui.message = fmt.Sprintf("%v %v %v", curr.Mode(), humanize(curr.Size()), curr.ModTime().Format(time.ANSIC))
ui.message = fmt.Sprintf("%v %v %v", curr.Mode(), humanize(curr.Size()), curr.ModTime().Format(gOpts.timefmt))
if !gOpts.preview {
return