Feature 23/project relative paths #79
No reviewers
Labels
No labels
autorelease: pending
autorelease: tagged
bug
ci/cd
documentation
duplicate
enhancement
good first issue
help wanted
improvement
invalid
priority
high
priority
low
question
refactor
size
L
size
M
size
S
size
XS
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/haunt.nvim!79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature-23/project-relative-paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checklist
CONTRIBUTING.md./scripts/test) locallyREADME.mdif applicableSummary
Breaking change!
Project-relative paths and cross-project safety (#23, #75)
haunt.projectmodule owns root + branch + project ID detection. Project ID falls back through: git root commit hash → repo top-level path → cwd. Storage filename issha256(project_id | branch)so forks/clones of the same project resolve to the same file across machines.~/.config/nvim/init.luawhile you're in another repo) are flaggedabsolute=trueand pass through unchanged.<old>.v1.bak(never deleted, might wanna do that yourself).:HauntMigrateis exposed for explicit re-runs, incase things go wrong.project_id,project_root, andstorage_pathit loaded from. Saves always write to the stamped path, so a:cdmid-session no longer redirects writes into a different project's file (root cause of the duplicate-JSON-files in #75).tests/cross_project_spec.luacovers the project-crossing scenarios;tests/migration_spec.luacovers v1 → v2 round-trips.Extmark Line Sync
VimPreLeave.Issues
Closes: #23
Closes: #72
AI Disclosure
Tests were written by AI, code was reviewed by it before pushing