feat: store data in platform-conventional directories (XDG)#104
Merged
wesbillman merged 1 commit intomainfrom Feb 13, 2026
Merged
feat: store data in platform-conventional directories (XDG)#104wesbillman merged 1 commit intomainfrom
wesbillman merged 1 commit intomainfrom
Conversation
Use dirs::data_dir() instead of ~/.staged/ so repos and worktrees land in $XDG_DATA_HOME/staged/ on Linux and ~/Library/Application Support/staged/ on macOS. Centralizes path logic in a new paths module. Co-Authored-By: Claude Opus 4.6 <[email protected]>
taylorkmho
added a commit
that referenced
this pull request
Feb 13, 2026
* origin/main: fix: surface worktree setup errors instead of showing infinite spinner (#106) feat: store data in platform-conventional directories (XDG) (#104) feat(notes): add copy-to-clipboard button in NoteModal (#103) feat: add use github repo based projects to avoid cloning when using remote branches (#102) fix: always branch new worktrees from remote-tracking refs (#100) fix: remove debug console.log statements from BranchCard (#97) feat: improve PR button UX with push support and conditional visibility (#89)
loganj
added a commit
that referenced
this pull request
Feb 26, 2026
Replace the post-render DOM mutation approach for data-source-line attributes with a remark plugin (remarkSourceLine) that sets them at the mdast level via hProperties. This mirrors the Go goldmark sourceLineTransformer — positions are captured during markdown parsing, before rehypeRaw can strip them, and React owns the entire DOM. Also fix duplicate highlight text by returning SKIP from rehypeCommentHighlights after applying highlights, preventing double-application when parent and child share a start line (e.g. <li> and its child <p>). Co-authored-by: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pathsmodule (src-tauri/src/paths.rs) that usesdirs::data_dir()to derive storage paths following platform conventions:$XDG_DATA_HOME/staged/on Linux,~/Library/Application Support/staged/on macOS~/.staged/paths for repos and worktrees with the centralized helpersTest plan
cargo buildcompiles cleanlycargo test— all 58 tests pass🤖 Generated with Claude Code