add 'drawbox' option to draw box around windows

This commit is contained in:
Gokcehan committed 2018-04-15 19:26:51 +03:00
1 parent d608eb4a56
commit 8eb9055622
6 files changed
+77 -5

No files matched your search

+12
View File
@@ -26,6 +26,18 @@ func (e *setExpr) eval(app *app, args []string) {
case "dirfirst!":
gOpts.dirfirst = !gOpts.dirfirst
app.nav.sort()
case "drawbox":
gOpts.drawbox = true
app.ui.renew()
app.nav.height = app.ui.wins[0].h
case "nodrawbox":
gOpts.drawbox = false
app.ui.renew()
app.nav.height = app.ui.wins[0].h
case "drawbox!":
gOpts.drawbox = !gOpts.drawbox
app.ui.renew()
app.nav.height = app.ui.wins[0].h
case "globsearch":
gOpts.globsearch = true
case "noglobsearch":