Vault contents change while the user writes. There is no way to keep the index current without manually re-running ingest. A --watch flag on ingest should poll the Obsidian CLI for recently-modified files every N seconds and re-ingest only those notes, printing a compact change summary per cycle.
Use obsidian files modified-since=<epoch> format=json to get only the changed paths. Combine with the incremental hash check from #incremental so unchanged files are still skipped. Configurable interval via --watch-interval (default 30s).
Vault contents change while the user writes. There is no way to keep the index current without manually re-running ingest. A --watch flag on ingest should poll the Obsidian CLI for recently-modified files every N seconds and re-ingest only those notes, printing a compact change summary per cycle.
Use
obsidian files modified-since=<epoch> format=jsonto get only the changed paths. Combine with the incremental hash check from #incremental so unchanged files are still skipped. Configurable interval via--watch-interval(default 30s).