Make duplicated file format configurable (#1315)
* Make duplicated file format configurable * Add %b and %f options to dupfilefmt
This commit is contained in:
1 parent
835c5b35e2
commit
f20d0e5fb4
8 files changed
+47
-4
No files matched your search
@@ -149,6 +149,7 @@ The following options can be used to customize the behavior of lf:
|
||||
dironly bool (default false)
|
||||
dirpreviews bool (default false)
|
||||
drawbox bool (default false)
|
||||
dupfilefmt string (default '%f.~%n~')
|
||||
errorfmt string (default "\e033[7;31;47m")
|
||||
filesep string (default "\en")
|
||||
findlen int (default 1)
|
||||
@@ -876,6 +877,12 @@ If enabled, directories will also be passed to the previewer script. This allows
|
||||
.PP
|
||||
Draw boxes around panes with box drawing characters.
|
||||
.PP
|
||||
.EX
|
||||
dupfilefmt string (default '%f.~%n~')
|
||||
.EE
|
||||
.PP
|
||||
Format string of file name when creating duplicate files. With the default format, copying a file `abc.txt` to the same directory will result in a duplicate file called `abc.txt.~1~`. Special expansions are provided, '%f' as the file name, '%b' for basename (file name without extension), '%e' as the extension (including the dot) and '%n' as the number of duplicates.
|
||||
.PP
|
||||
.EX
|
||||
errorfmt string (default "\e033[7;31;47m")
|
||||
.EE
|
||||
|
||||
Reference in new issue
Block a user