Config Overrides #2759
kevinslin
started this conversation in
RFCs/Ideas
Replies: 2 comments 2 replies
-
RFC Consideration
Development Considerations
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Something else that came to mind is that we could suggest local overrides to the user at startup. For example Dendron could ask if they prefer the frontmatter automatically folded, or whether they want the randomly colored tags or not. This would both introduce people to these features and config options, and to the fact that you can set local overrides. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
46 Config Overrides
Goals
Enable local configuration overrides for vaults
Context
Dendron vaults are often shared in different environments and might be used by multiple people. Users of a vault depend on a common
dendron.yml
for all configuration which means that local customization isn't feasibleProposal
Introduce local configuration overrides. On initialization, dendron will look for a
.dendronrc.yml
file in the following order:.dendronrc.yml
file in the same directory as the vault.dendronrc.yml
file in the user$HOME
directoryThe layout of these yml files will be exactly the same as
dendron.yml
and will be merged with existing options when a matching key is foundExample
The following shows a vault with a single vault with a local override that adds an additional local vault
Layout
...
is used to denotte ommited configuration details that are not relevant to this exampleEffect
When pulling down the vault
seed
, contributors only see the contents of the seed vault and also a preview withenableFMTitle: true
behavior.For this particular user, because they have a local override, they will see an additional vault,
sprout
when they load Dendron.Design
Note that we could have made this interface more ergonomic by assuming vaults should be extended instead of replaced. Presumabliy, this would be the common case and would also support common usecases like adding global vaults that get added to all projects by putting these vaults in the
$HOME/.dendronrc.yml
directory.The reason this RFC proposes not doing this is because of the following:
siteHierarchies
?)If, after launching this feature, we find that extending vaults is what the overwhelming majority of users want, we can revisit this design decision and iterate upon it
Tradeoffs
Beta Was this translation helpful? Give feedback.
All reactions