add an on-select command (#864)
This commit is contained in:
1 parent
747aff8763
commit
e10ef9111b
7 files changed
+157
-125
No files matched your search
@@ -413,7 +413,7 @@ func (app *app) loop() {
|
||||
curr, err := app.nav.currFile()
|
||||
if err == nil {
|
||||
if d.path == app.nav.currDir().path {
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFile(app, true)
|
||||
}
|
||||
if d.path == curr.path {
|
||||
app.ui.dirPrev = d
|
||||
@@ -462,7 +462,7 @@ func (app *app) loop() {
|
||||
app.ui.draw(app.nav)
|
||||
case <-app.ticker.C:
|
||||
app.nav.renew()
|
||||
app.ui.loadFile(app.nav, false)
|
||||
app.ui.loadFile(app, false)
|
||||
app.ui.draw(app.nav)
|
||||
}
|
||||
}
|
||||
@@ -536,7 +536,7 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
||||
anyKey()
|
||||
}
|
||||
|
||||
app.ui.loadFile(app.nav, true)
|
||||
app.ui.loadFile(app, true)
|
||||
|
||||
switch prefix {
|
||||
case "%":
|
||||
|
||||
Reference in new issue
Block a user