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

[FEATURE] Automatically create missing folders #161

Open
gabrielbdsantos opened this issue Jul 22, 2022 · 0 comments · May be fixed by #253
Open

[FEATURE] Automatically create missing folders #161

gabrielbdsantos opened this issue Jul 22, 2022 · 0 comments · May be fixed by #253
Assignees
Labels
enhancement New feature or request

Comments

@gabrielbdsantos
Copy link

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.

@gabrielbdsantos gabrielbdsantos added the enhancement New feature or request label Jul 22, 2022
ibotty added a commit to ibotty/toml-bombadil that referenced this issue Apr 27, 2023
@ibotty ibotty linked a pull request Apr 27, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants