forked from gokcehan/lf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruler.default
More file actions
20 lines (20 loc) · 857 Bytes
/
ruler.default
File metadata and controls
20 lines (20 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{with .Message -}}
{{. -}}
{{else with .Stat -}}
{{.Permissions | printf "\033[36m%s\033[0m" -}}
{{with .LinkCount}} {{.}}{{end -}}
{{with .User}} {{.}}{{end -}}
{{with .Group}} {{.}}{{end -}}
{{.Size | humanize | printf " %5s" -}}
{{.ModTime | printf " %s" -}}
{{with .Target}} -> {{.}}{{end -}}
{{end -}}
{{.SPACER -}}
{{with .Keys}} {{.}}{{end -}}
{{with .Progress}} {{join . " "}}{{end -}}
{{with .Copy}} {{len . | printf "%s %d \033[0m" $.Options.copyfmt}}{{end -}}
{{with .Cut}} {{len . | printf "%s %d \033[0m" $.Options.cutfmt}}{{end -}}
{{with .Select}} {{len . | printf "%s %d \033[0m" $.Options.selectfmt}}{{end -}}
{{with .Visual}} {{len . | printf "%s %d \033[0m" $.Options.visualfmt}}{{end -}}
{{with .Filter}} {{join . " " | printf "\033[7;34m %s \033[0m"}}{{end -}}
{{printf " %d/%d" .Index .Total}}