Fix toggling of directory previews (#993)
* Fix toggling of directory previews * Fix "dirpreviews!" * Sort tab completion items consistently
This commit is contained in:
1 parent
48d1899ec8
commit
9bb2487b14
2 files changed
+7
-1
No files matched your search
+3
-1
@@ -123,9 +123,11 @@ var (
|
|||||||
"nodirfirst",
|
"nodirfirst",
|
||||||
"dirfirst!",
|
"dirfirst!",
|
||||||
"dironly",
|
"dironly",
|
||||||
"dirpreviews",
|
|
||||||
"nodironly",
|
"nodironly",
|
||||||
"dironly!",
|
"dironly!",
|
||||||
|
"dirpreviews",
|
||||||
|
"nodirpreviews",
|
||||||
|
"dirpreviews!",
|
||||||
"drawbox",
|
"drawbox",
|
||||||
"nodrawbox",
|
"nodrawbox",
|
||||||
"drawbox!",
|
"drawbox!",
|
||||||
|
|||||||
@@ -48,6 +48,10 @@ func (e *setExpr) eval(app *app, args []string) {
|
|||||||
app.ui.loadFile(app, true)
|
app.ui.loadFile(app, true)
|
||||||
case "dirpreviews":
|
case "dirpreviews":
|
||||||
gOpts.dirpreviews = true
|
gOpts.dirpreviews = true
|
||||||
|
case "nodirpreviews":
|
||||||
|
gOpts.dirpreviews = false
|
||||||
|
case "dirpreviews!":
|
||||||
|
gOpts.dirpreviews = !gOpts.dirpreviews
|
||||||
case "nodironly":
|
case "nodironly":
|
||||||
gOpts.dironly = false
|
gOpts.dironly = false
|
||||||
app.nav.sort()
|
app.nav.sort()
|
||||||
|
|||||||
Reference in new issue
Block a user