mirror of
https://github.com/JuliusBrussee/caveman.git
synced 2026-08-11 13:21:09 +02:00
removeCavemanHooks stripped any settings.json hook whose command contained the substring 'caveman' anywhere — a user-authored hook like 'node ~/Projects/caveman-notes/my-hook.js' was silently deleted by --uninstall. Match tokens against MANAGED_HOOK_BASENAMES by exact basename instead (win32.basename so Windows-written configs match anywhere), the same pattern pruneOrphanedManagedHooks already uses. Hoist the tokenizer to module scope and reuse it in the prune pass. Add caveman-statusline.ps1 to the managed set so the Windows statusline wiring is covered by removal and orphan-pruning too. Fixes #593