You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #263 we added support for .mdformat.toml as an on-disk configuration file.
I would like to revisit the possibility of also reading fall-back configuration from $XDG_CONFIG_HOME.
platformdirs provides tools that can assist with this in a cross-platform way.
Proposal
The best approach I could think of is to start with the lowest priority configuration files first and work down, applying changes as we go. That way, defaults can be over-ridden by $XDG_CONFIG_HOME/mdformat.toml (or whatever we call it) but project-specific settings still take priority over any other on-disk configuration.
Descending priority would look something like (subject to negotiation):
$HOME/.mdformat.toml
$HOME/.config/mdformat.toml
$XDG_CONFIG_HOME/mdformat.toml
/.mdformat.toml
/path/to/repo/.mdformat.toml
Tasks and updates
Confirm general strategy for config resolution
Confirm prioritization of different paths where we might find a config
Implement!
The text was updated successfully, but these errors were encountered:
Context
In #263 we added support for
.mdformat.toml
as an on-disk configuration file.I would like to revisit the possibility of also reading fall-back configuration from
$XDG_CONFIG_HOME
.platformdirs provides tools that can assist with this in a cross-platform way.
Proposal
The best approach I could think of is to start with the lowest priority configuration files first and work down, applying changes as we go. That way, defaults can be over-ridden by
$XDG_CONFIG_HOME/mdformat.toml
(or whatever we call it) but project-specific settings still take priority over any other on-disk configuration.Descending priority would look something like (subject to negotiation):
$HOME/.mdformat.toml
$HOME/.config/mdformat.toml
$XDG_CONFIG_HOME/mdformat.toml
/.mdformat.toml
/path/to/repo/.mdformat.toml
Tasks and updates
The text was updated successfully, but these errors were encountered: