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
@@ -62,12 +62,16 @@ func (e *setExpr) eval(app *app, args []string) {
gOpts.borderfmt = e.val
case "cleaner":
gOpts.cleaner = replaceTilde(e.val)
case "copyfmt":
gOpts.copyfmt = e.val
case "cursoractivefmt":
gOpts.cursoractivefmt = e.val
case "cursorparentfmt":
gOpts.cursorparentfmt = e.val
case "cursorpreviewfmt":
gOpts.cursorpreviewfmt = e.val
case "cutfmt":
gOpts.cutfmt = e.val
case "hidecursorinactive":
if e.val == "" || e.val == "true" {
gOpts.hidecursorinactive = true
@@ -740,6 +744,8 @@ func (e *setExpr) eval(app *app, args []string) {
return
}
gOpts.scrolloff = n
case "selectfmt":
gOpts.selectfmt = e.val
case "selmode":
switch e.val {
case "all", "dir":