Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use etcetera instead of directories #1108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lu-zero
Copy link

@lu-zero lu-zero commented Dec 20, 2024

It provides more flexibility and it has a better default for cli tools.

Fixes #1107.

// Windows: ~\AppData\Roaming\Vim\Vim Clap\config\config.toml
let config_file_path = Dirs::project().config_dir().join("config.toml");
let config_file_path = Dirs::config_dir().join("config.toml");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the support of ~/Library/Application\ Support/org.vim.Vim-Clap/config.toml on macOS? This will ensure compatibility for existing macOS users, preventing any complaints about their current configuration file no longer working.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add the logic to look on both places.

crates/maple_config/src/lib.rs Outdated Show resolved Hide resolved
@lu-zero
Copy link
Author

lu-zero commented Dec 21, 2024

This will have to wait until lunacookies/etcetera#22 lands and is released if you want to stay compatible.

It provides more flexibility and it has a better default for cli tools.

Fixes liuchengxu#1107.
@liuchengxu
Copy link
Owner

The upstream PR has been pending for quite a while, I don't mind using a patched dep of etcetera since it seems to be stable if you would like this PR merged into vim-clap sooner. CI failure is unrelated and can be ignored.

@lu-zero
Copy link
Author

lu-zero commented Dec 23, 2024

I wished to not bring in another custom version of the same logic, if only the directories author weren't that stubborn...

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.

Could be possible to switch to use etcetera and use Xdg paths on macOS as well
2 participants