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",
|
||||
"dirfirst!",
|
||||
"dironly",
|
||||
"dirpreviews",
|
||||
"nodironly",
|
||||
"dironly!",
|
||||
"dirpreviews",
|
||||
"nodirpreviews",
|
||||
"dirpreviews!",
|
||||
"drawbox",
|
||||
"nodrawbox",
|
||||
"drawbox!",
|
||||
|
||||
@@ -48,6 +48,10 @@ func (e *setExpr) eval(app *app, args []string) {
|
||||
app.ui.loadFile(app, true)
|
||||
case "dirpreviews":
|
||||
gOpts.dirpreviews = true
|
||||
case "nodirpreviews":
|
||||
gOpts.dirpreviews = false
|
||||
case "dirpreviews!":
|
||||
gOpts.dirpreviews = !gOpts.dirpreviews
|
||||
case "nodironly":
|
||||
gOpts.dironly = false
|
||||
app.nav.sort()
|
||||
|
||||
Reference in new issue
Block a user