Replace hidecursorinactive with hook commands (#1763)

* Replace `hidecursorinactive` with hook commands

* Remove `focusreport` setting
This commit is contained in:
Joe Lim authored and GitHub committed 2024-07-01 12:17:22 +10:00
1 parent 67038762cc
commit e9faf966a0
6 files changed
+346 -310

No files matched your search

+72 -74
View File
@@ -30,79 +30,78 @@ func isValidSortMethod(method sortMethod) bool {
const invalidSortErrorMessage = `sortby: value should either be 'natural', 'name', 'size', 'time', 'atime', 'ctime' or 'ext'`
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
dirfirst bool
dironly bool
dirpreviews bool
drawbox bool
dupfilefmt string
globfilter bool
globsearch bool
hidden bool
icons bool
ignorecase bool
ignoredia bool
incfilter bool
incsearch bool
mouse bool
number bool
preview bool
relativenumber bool
reverse bool
roundbox bool
selectfmt string
sixel bool
sortby sortMethod
smartcase bool
smartdia bool
waitmsg string
watch bool
wrapscan bool
wrapscroll bool
findlen int
period int
scrolloff int
tabstop int
errorfmt string
filesep string
ifs string
previewer string
cleaner string
promptfmt string
selmode string
shell string
shellflag string
statfmt string
timefmt string
infotimefmtnew string
infotimefmtold string
truncatechar string
truncatepct int
ratios []int
hiddenfiles []string
history bool
info []string
ruler []string
rulerfmt string
preserve []string
shellopts []string
keys map[string]expr
cmdkeys map[string]expr
cmds map[string]expr
user map[string]string
tempmarks string
numberfmt string
tagfmt string
anchorfind bool
autoquit bool
borderfmt string
copyfmt string
cursoractivefmt string
cursorparentfmt string
cursorpreviewfmt string
cutfmt string
dircache bool
dircounts bool
dirfirst bool
dironly bool
dirpreviews bool
drawbox bool
dupfilefmt string
globfilter bool
globsearch bool
hidden bool
icons bool
ignorecase bool
ignoredia bool
incfilter bool
incsearch bool
mouse bool
number bool
preview bool
relativenumber bool
reverse bool
roundbox bool
selectfmt string
sixel bool
sortby sortMethod
smartcase bool
smartdia bool
waitmsg string
watch bool
wrapscan bool
wrapscroll bool
findlen int
period int
scrolloff int
tabstop int
errorfmt string
filesep string
ifs string
previewer string
cleaner string
promptfmt string
selmode string
shell string
shellflag string
statfmt string
timefmt string
infotimefmtnew string
infotimefmtold string
truncatechar string
truncatepct int
ratios []int
hiddenfiles []string
history bool
info []string
ruler []string
rulerfmt string
preserve []string
shellopts []string
keys map[string]expr
cmdkeys map[string]expr
cmds map[string]expr
user map[string]string
tempmarks string
numberfmt string
tagfmt string
}
var gLocalOpts struct {
@@ -193,7 +192,6 @@ func init() {
gOpts.cursorparentfmt = "\033[7m"
gOpts.cursorpreviewfmt = "\033[4m"
gOpts.cutfmt = "\033[7;31m"
gOpts.hidecursorinactive = false
gOpts.globfilter = false
gOpts.globsearch = false
gOpts.hidden = false