Implement directory changes

This commit is contained in:
Joe Lim committed 2024-03-30 19:57:25 +11:00
1 parent 7c3cfa8865
commit 20646bf31a
3 files changed
+36

No files matched your search

+2
View File
@@ -190,6 +190,7 @@ func (e *setExpr) eval(app *app, args []string) {
if err == nil {
if gOpts.watch {
app.nav.startWatcher()
app.nav.setWatches()
} else {
app.nav.stopWatcher()
}
@@ -573,6 +574,7 @@ func onRedraw(app *app) {
}
func onSelect(app *app) {
app.nav.setWatches()
if cmd, ok := gOpts.cmds["on-select"]; ok {
cmd.eval(app, nil)
}