parent
5a9a829252
commit
ebd599deca
3
comp.go
3
comp.go
@ -67,9 +67,6 @@ var (
|
|||||||
"ignorecase",
|
"ignorecase",
|
||||||
"noignorecase",
|
"noignorecase",
|
||||||
"ignorecase!",
|
"ignorecase!",
|
||||||
"lscolors",
|
|
||||||
"nolscolors",
|
|
||||||
"lscolors!",
|
|
||||||
"preview",
|
"preview",
|
||||||
"nopreview",
|
"nopreview",
|
||||||
"preview!",
|
"preview!",
|
||||||
|
1
doc.go
1
doc.go
@ -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)
|
||||||
|
@ -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)
|
||||||
|
9
eval.go
9
eval.go
@ -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":
|
||||||
|
2
opts.go
2
opts.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user