Dirfirst option and numerical sorting (#27)
* Create option dirfirst, and add numerical sorting * Add only dirfirst option
This commit is contained in:
1 parent
d36e272272
commit
2345e16794
6 files changed
+20
-2
No files matched your search
@@ -26,6 +26,15 @@ func (e *SetExpr) eval(app *App, args []string) {
|
||||
gOpts.preview = false
|
||||
case "preview!":
|
||||
gOpts.preview = !gOpts.preview
|
||||
case "dirfirst":
|
||||
gOpts.dirfirst = true
|
||||
app.nav.renew(app.nav.height)
|
||||
case "nodirfirst":
|
||||
gOpts.dirfirst = false
|
||||
app.nav.renew(app.nav.height)
|
||||
case "dirfirst!":
|
||||
gOpts.dirfirst = !gOpts.dirfirst
|
||||
app.nav.renew(app.nav.height)
|
||||
case "scrolloff":
|
||||
n, err := strconv.Atoi(e.val)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user