remove 'lscolors' option

Related #37
This commit is contained in:
Gokcehan 2018-04-14 21:21:39 +03:00
parent 5a9a829252
commit ebd599deca
5 changed files with 0 additions and 16 deletions

View File

@ -67,9 +67,6 @@ var (
"ignorecase", "ignorecase",
"noignorecase", "noignorecase",
"ignorecase!", "ignorecase!",
"lscolors",
"nolscolors",
"lscolors!",
"preview", "preview",
"nopreview", "nopreview",
"preview!", "preview!",

1
doc.go
View File

@ -79,7 +79,6 @@ The following options can be used to customize the behavior of lf:
globsearch boolean (default off) globsearch boolean (default off)
hidden boolean (default off) hidden boolean (default off)
ignorecase boolean (default on) ignorecase boolean (default on)
lscolors boolean (default on)
preview boolean (default on) preview boolean (default on)
reverse boolean (default off) reverse boolean (default off)
smartcase boolean (default on) smartcase boolean (default on)

View File

@ -83,7 +83,6 @@ The following options can be used to customize the behavior of lf:
globsearch boolean (default off) globsearch boolean (default off)
hidden boolean (default off) hidden boolean (default off)
ignorecase boolean (default on) ignorecase boolean (default on)
lscolors boolean (default on)
preview boolean (default on) preview boolean (default on)
reverse boolean (default off) reverse boolean (default off)
smartcase boolean (default on) smartcase boolean (default on)

View File

@ -47,15 +47,6 @@ func (e *setExpr) eval(app *app, args []string) {
gOpts.ignorecase = false gOpts.ignorecase = false
case "ignorecase!": case "ignorecase!":
gOpts.ignorecase = !gOpts.ignorecase gOpts.ignorecase = !gOpts.ignorecase
case "lscolors":
gOpts.lscolors = true
app.ui.colors = parseColors()
case "nolscolors":
gOpts.lscolors = false
app.ui.colors = parseColors()
case "lscolors!":
gOpts.lscolors = !gOpts.lscolors
app.ui.colors = parseColors()
case "preview": case "preview":
gOpts.preview = true gOpts.preview = true
case "nopreview": case "nopreview":

View File

@ -8,7 +8,6 @@ var gOpts struct {
globsearch bool globsearch bool
hidden bool hidden bool
ignorecase bool ignorecase bool
lscolors bool
preview bool preview bool
reverse bool reverse bool
smartcase bool smartcase bool
@ -35,7 +34,6 @@ func init() {
gOpts.globsearch = false gOpts.globsearch = false
gOpts.hidden = false gOpts.hidden = false
gOpts.ignorecase = true gOpts.ignorecase = true
gOpts.lscolors = true
gOpts.preview = true gOpts.preview = true
gOpts.reverse = false gOpts.reverse = false
gOpts.smartcase = true gOpts.smartcase = true