Make duplicated file format configurable (#1315)

* Make duplicated file format configurable

* Add %b and %f options to dupfilefmt
This commit is contained in:
David Pedersen authored and GitHub committed 2023-07-04 12:29:24 +03:00
1 parent 835c5b35e2
commit f20d0e5fb4
8 files changed
+47 -4

No files matched your search

+2
View File
@@ -39,6 +39,7 @@ var gOpts struct {
dironly bool
dirpreviews bool
drawbox bool
dupfilefmt string
globsearch bool
icons bool
ignorecase bool
@@ -98,6 +99,7 @@ func init() {
gOpts.dironly = false
gOpts.dirpreviews = false
gOpts.drawbox = false
gOpts.dupfilefmt = "%f.~%n~"
gOpts.borderfmt = "\033[0m"
gOpts.cursoractivefmt = "\033[7m"
gOpts.cursorparentfmt = "\033[7m"