Continue PR: configure time format in the info column (#751)
* Allow to configure time format in the info column * Update infotimefmt PR from Krzysztof Maicher Add format length, rename options Co-authored-by: Krzysztof Maicher <krzysztof.maicher@gmail.com>
This commit is contained in:
1 parent
cbb80a0d44
commit
b08ab8dfb7
7 files changed
+55
-5
No files matched your search
@@ -62,6 +62,8 @@ var gOpts struct {
|
||||
shell string
|
||||
shellflag string
|
||||
timefmt string
|
||||
infotimefmtnew string
|
||||
infotimefmtold string
|
||||
truncatechar string
|
||||
ratios []int
|
||||
hiddenfiles []string
|
||||
@@ -74,6 +76,8 @@ var gOpts struct {
|
||||
tempmarks string
|
||||
}
|
||||
|
||||
var gInfotimefmtMaxLen = 12
|
||||
|
||||
func init() {
|
||||
gOpts.anchorfind = true
|
||||
gOpts.autoquit = false
|
||||
@@ -109,6 +113,8 @@ func init() {
|
||||
gOpts.shell = gDefaultShell
|
||||
gOpts.shellflag = gDefaultShellFlag
|
||||
gOpts.timefmt = time.ANSIC
|
||||
gOpts.infotimefmtnew = "Jan _2 15:04"
|
||||
gOpts.infotimefmtold = "Jan _2 2006"
|
||||
gOpts.truncatechar = "~"
|
||||
gOpts.ratios = []int{1, 2, 3}
|
||||
gOpts.hiddenfiles = []string{".*"}
|
||||
|
||||
Reference in new issue
Block a user