Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: store data in platform-conventional directories (XDG)#104

Merged
wesbillman merged 1 commit intomainfrom
wesb/use-xdg-convention
Feb 13, 2026
Merged

feat: store data in platform-conventional directories (XDG)#104
wesbillman merged 1 commit intomainfrom
wesb/use-xdg-convention

Conversation

@wesbillman
Copy link
Collaborator

@wesbillman wesbillman commented Feb 13, 2026

Summary

  • Introduces a paths module (src-tauri/src/paths.rs) that uses dirs::data_dir() to derive storage paths following platform conventions: $XDG_DATA_HOME/staged/ on Linux, ~/Library/Application Support/staged/ on macOS
  • Replaces all hardcoded ~/.staged/ paths for repos and worktrees with the centralized helpers
  • Updates doc comments to reflect the new path scheme

Test plan

  • cargo build compiles cleanly
  • cargo test — all 58 tests pass
  • Verify repos clone to the new data directory on macOS
  • Verify worktrees are created under the new data directory

🤖 Generated with Claude Code

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]>
@wesbillman wesbillman merged commit 05a2ded into main Feb 13, 2026
3 checks passed
@wesbillman wesbillman deleted the wesb/use-xdg-convention branch February 13, 2026 21:58
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant