esync

Directory watching and remote syncing
Log | Files | Refs | README | LICENSE

commit fc6d6720f4f30ffc5afd6fac8942437713243281
parent 07f5a2a9598a85405baf42053eb6b9a360d952a1
Author: Erik Loualiche <[email protected]>
Date:   Sun,  8 Mar 2026 15:14:10 -0400

feat: pass include patterns to watcher from config

Co-Authored-By: Claude Opus 4.6 <[email protected]>

Diffstat:
Mcmd/sync.go | 2++
Mintegration_test.go | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmd/sync.go b/cmd/sync.go @@ -264,6 +264,7 @@ func runTUI(cfg *config.Config, s *syncer.Syncer) error { cfg.Sync.Local, cfg.Settings.WatcherDebounce, cfg.AllIgnorePatterns(), + cfg.Settings.Include, handler, ) if err != nil { @@ -360,6 +361,7 @@ func runDaemon(cfg *config.Config, s *syncer.Syncer) error { cfg.Sync.Local, cfg.Settings.WatcherDebounce, cfg.AllIgnorePatterns(), + cfg.Settings.Include, handler, ) if err != nil { diff --git a/integration_test.go b/integration_test.go @@ -109,7 +109,7 @@ func TestWatcherTriggersSync(t *testing.T) { } // Use short debounce (100ms) for fast tests - w, err := watcher.New(src, 100, nil, handler) + w, err := watcher.New(src, 100, nil, nil, handler) if err != nil { t.Fatalf("watcher.New() failed: %v", err) }