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

Support for separate source files (revisit) #98

Open
VorpalBlade opened this issue Mar 14, 2024 · 0 comments
Open

Support for separate source files (revisit) #98

VorpalBlade opened this issue Mar 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@VorpalBlade
Copy link
Owner

VorpalBlade commented Mar 14, 2024

With KDE 6 being released but not having KDE 6 on every computer yet (work laptop runs Ubuntu, not Arch) it seems it is time to revisit the question of system-specific .src.ini files. There are complications, and set etc was implemented instead earlier. However, when the differences become large this becomes non-trivial.

On the applying side this is simple: chezmoi templates can handle this.

The harder problem is the adding side: Re-add needs to somehow expand chezmoi templates, especially for the source file which is especially tricky, .chezmoi.sourceFile etc will not be set except when chezmoi is processing things "the normal way".

It seems infeasible to re-implement chezmoi template handling fully. Perhaps we could recognize and patch specific parts before using chezmoi execute-template? This would also make handling of add:hide etc more consistent in theory (though this is not a major problem).

@VorpalBlade VorpalBlade added the enhancement New feature or request label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant