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
Stow-like recursive symlinking #82
Comments
This is a great question. The reason it didn't make A Side note: yeah, docs are missing a few things. We're currently working on migrating them from mdBook to GitBook. Won't be long 😃 |
I'll try and whip something up this weekend! Rust has been near the top of my list to learn for a bit now. |
@eddiezane Docs still need updated since the big atom refactor, but adding your own actions is a lot simpler now. |
Stellar! I've slowly been making my way through the Rust book. Haven't been scared away yet 😅. |
Closing this just now, as I beleive |
Ah sorry I misunderstood your previous comment. Thank you! |
Had a chance to test this.
Stow will recursively walk a directory and link files individually. Take my neovim config for example:
Running
This allows for encapsulating different programs into folders - sort of like a deb package would do. Based on the path in the folder I can see that I'd like to replicate the same behavior (doesn't have to be
This could be manually accomplished with individual file links but an action would simplify it. The answer could also be this is an anti-pattern for comtrya and to keep using stow 😅. I'm realizing that this setup offloads the configuration to the directory structure. |
@eddiezane I've "maybe" implemented this in #139 Can you maybe test it and see if the behaviour matches up with what you expected? It doesn't do recursive, as I wasn't sure creating the directories to then symlink inside made any sense beyond just symlinking the directories too. Lemme know 😄 |
Given this directory, with stow I can run
stow nvim
from the root of my dot files repo to recursively symlink all the files resulting in~/.config/nvim/{coc-config.vim,coc-settings.json,init.vim}
existing.I see that
file.symlink
was implemented (side note: looks like it didn't make the readme yet. I can PR that.). Would this behavior be more aligned to adirectory.link
? Or maybe an option on thedirectory.copy
action?The text was updated successfully, but these errors were encountered: