mirror of
https://github.com/rizsotto/Bear.git
synced 2026-05-28 00:20:45 +02:00
e72d69e6ba
bear/src/config/loader.rs was the only consumer of the directories crate. Replace BaseDirs / ProjectDirs with a small per-platform resolver (XDG_CONFIG_HOME or $HOME/.config on Unix; LOCALAPPDATA / APPDATA on Windows). Drops directories, dirs-sys, and option-ext from the graph. Behavior changes (silent for affected users): - macOS no longer probes ~/Library/Application Support/. CLI tools on macOS should use ~/.config/, matching git, gh, nvim, fish, ripgrep, helix, etc. Bear's INSTALL.md already nudges macOS users toward ~/.config for fish completions. - Windows path flattens from \rizsotto\Bear\config\ to \Bear\, paralleling the Unix Bear/ subdir. Documentation updates: a new FILES section in man/bear.1.md lists the concrete search order; the rustdoc on file_locations does the same; man/bear.1 regenerated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>