implement dironly option (#669)
Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
This commit is contained in:
1 parent
8adbd2b9ef
commit
75eba115d2
7 files changed
+63
No files matched your search
@@ -32,6 +32,24 @@ func (e *setExpr) eval(app *app, args []string) {
|
||||
gOpts.dircounts = false
|
||||
case "dircounts!":
|
||||
gOpts.dircounts = !gOpts.dircounts
|
||||
case "dironly":
|
||||
gOpts.dironly = true
|
||||
app.nav.sort()
|
||||
app.nav.position()
|
||||
app.ui.sort()
|
||||
app.ui.loadFile(app.nav, true)
|
||||
case "nodironly":
|
||||
gOpts.dironly = false
|
||||
app.nav.sort()
|
||||
app.nav.position()
|
||||
app.ui.sort()
|
||||
app.ui.loadFile(app.nav, true)
|
||||
case "dironly!":
|
||||
gOpts.dironly = !gOpts.dironly
|
||||
app.nav.sort()
|
||||
app.nav.position()
|
||||
app.ui.sort()
|
||||
app.ui.loadFile(app.nav, true)
|
||||
case "dirfirst":
|
||||
gOpts.sortType.option |= dirfirstSort
|
||||
app.nav.sort()
|
||||
|
||||
Reference in new issue
Block a user