Allow customization for cut/copy/select colors (#1540)

* Allow customization for cut/copy/select colors

* Add documentation
This commit is contained in:
Joe Lim authored and GitHub committed 2024-01-01 06:35:54 +11:00
1 parent 488294588e
commit f8399eb6e0
5 files changed
+39 -11

No files matched your search

+6
View File
@@ -46,9 +46,11 @@ var gOpts struct {
anchorfind bool
autoquit bool
borderfmt string
copyfmt string
cursoractivefmt string
cursorparentfmt string
cursorpreviewfmt string
cutfmt string
hidecursorinactive bool
dircache bool
dircounts bool
@@ -65,6 +67,7 @@ var gOpts struct {
mouse bool
number bool
preview bool
selectfmt string
sixel bool
relativenumber bool
smartcase bool
@@ -204,9 +207,11 @@ func init() {
gOpts.drawbox = false
gOpts.dupfilefmt = "%f.~%n~"
gOpts.borderfmt = "\033[0m"
gOpts.copyfmt = "\033[7;33m"
gOpts.cursoractivefmt = "\033[7m"
gOpts.cursorparentfmt = "\033[7m"
gOpts.cursorpreviewfmt = "\033[4m"
gOpts.cutfmt = "\033[7;31m"
gOpts.hidecursorinactive = false
gOpts.globsearch = false
gOpts.icons = false
@@ -217,6 +222,7 @@ func init() {
gOpts.mouse = false
gOpts.number = false
gOpts.preview = true
gOpts.selectfmt = "\033[7;35m"
gOpts.sixel = false
gOpts.relativenumber = false
gOpts.smartcase = true