fix: integrate browser-to-editor file loading and remove sample text

This commit is contained in:
gmp
2026-06-02 09:33:12 -04:00
parent 2c3702f421
commit ec87e95b35
4 changed files with 79 additions and 82 deletions
+4
View File
@@ -4,6 +4,7 @@ import (
"path/filepath"
"strings"
"pad/internal/io/pool"
"pad/internal/ui"
)
@@ -76,5 +77,8 @@ func HandleBrowserTap(bm *BrowserManager, s *BrowserState, index int) {
// Open file
s.SelectedIndex = index
ui.OpenFile(entry.Path)
// Dispatch ReadFileTask to the worker pool
task := pool.NewReadFileTask(entry.Path, bm.fs)
bm.workerPool.Dispatch(task)
}
}