Skip to content

Respect XDG config paths#2

Merged
affromero merged 1 commit into
mainfrom
feat/xdg-config-path
May 8, 2026
Merged

Respect XDG config paths#2
affromero merged 1 commit into
mainfrom
feat/xdg-config-path

Conversation

@affromero
Copy link
Copy Markdown
Owner

Summary

  • Add config resolution for GITPANE_CONFIG, XDG_CONFIG_HOME/gitpane/config.toml, ~/.config/gitpane/config.toml, and the platform-native path.
  • Preserve save semantics by writing back to the loaded config path, using GITPANE_CONFIG as an exclusive override, and preferring XDG paths when saving defaults.
  • Document the lookup order and startup config-path logging.

Fixes #1.
Addresses the XDG follow-up in #1 (comment).

Test plan

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test

@affromero affromero mentioned this pull request May 8, 2026
@affromero affromero merged commit d852c06 into main May 8, 2026
6 checks passed
@affromero affromero deleted the feat/xdg-config-path branch May 8, 2026 16:29
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.

scan_depth not working?

1 participant