toml-bombadil
toml-bombadil copied to clipboard
[FEATURE] Automatically create missing folders
Is your feature request related to a problem? Please describe.
Let's say I want to add a configuration for foo
at ~/.config/foo/config
. Using
foo = { source = foo/config, target = .config/foo/config }
only works if the directory .config/foo
already exists. Otherwise, bombadil throws an OS Error saying that the target folder does not exist.
Describe the solution you'd like
It would be nice if bombadil could automatically create missing folders so the symlink gets created during bombadil install
.
Describe alternatives you've considered
prehooks
can be used to create ~/.config/foo
, but this doesn't seem an elegant solution if one has a lot of missing folders.
Also, after the folder is created, the prehook
loses its purpose.
Additional context It might not be a necessary feature for daily operations, but it would be a nice addition for those deploying dotfiles after a fresh install.