Update nightwatch75/file-search to 0.0.10 (#39)

Co-authored-by: nightwatch75 <nightwatch75@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
nightwatch75
2026-07-17 19:54:05 -04:00
committed by GitHub
co-authored by nightwatch75 Claude Fable 5
parent 0c87f534ba
commit 203aaef232
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -155,7 +155,15 @@ local function buildIndex(query)
local queued = pendingQuery
pendingQuery = nil
if result.exitCode == 0 and not result.timedOut then
runQuery(queued or query)
if indexKey() ~= key then
-- Settings changed while the walk was running: the cache
-- holds paths relative to the old root, and activation
-- would join them to the new one. Rebuild instead of
-- searching stale records (mirrors the panel).
buildIndex(queued or query)
else
runQuery(queued or query)
end
else
launcher.setResults(queued or query, { noopRow("err_index") })
end
+1 -1
View File
@@ -6,7 +6,7 @@
id = "nightwatch75/file-search"
name = "File Search"
version = "0.0.9"
version = "0.0.10"
plugin_api = 3
author = "nightwatch75"
license = "MIT"