Dirfirst option and numerical sorting (#27)

* Create option dirfirst, and add numerical sorting

* Add only dirfirst option
This commit is contained in:
Ivan Menshykov authored and gokcehan committed 2016-10-18 23:17:27 +03:00
1 parent d36e272272
commit 2345e16794
6 files changed
+20 -2

No files matched your search

+9
View File
@@ -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 {