Add on-load command (#2010)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-06-20 17:36:57 +10:00
1 parent b76d2546e1
commit ff0c7f1c96
6 files changed
+47 -3

No files matched your search

+3
View File
@@ -427,6 +427,7 @@ func (app *app) loop() {
app.watchDir(d)
onLoad(app, d.fileNames())
app.ui.draw(app.nav)
case r := <-app.nav.regChan:
app.nav.regCache[r.path] = r
@@ -464,6 +465,8 @@ func (app *app) loop() {
if app.ui.msgIsStat {
app.ui.loadFileInfo(app.nav)
}
onLoad(app, []string{f.path})
app.ui.draw(app.nav)
case path := <-app.nav.delChan:
deletePathRecursive(app.nav.selections, path)