I created this for my own benefit, but thought it might be useful to others.
Let me know if you'd like to do this differently.
My goal was to separate my dofiles into directories a bit more, like one for my zsh files, etc.
But it's a bit annoying to replicate all the paths, so this change will (if the setting is true) prefix the source path for every dot with the relative import path.
Also duplicate keys are prefixed with their import path and there is an error message when they are found.
Additionally I create directories when missing (based on #253).
I might need/do some more tweaks based on my usage (just started onboarding to this on a new system).
For example, I'd like to have some defaulting for a dot target path too.
Most of my files are 1-1 the same name or path from source to target, so it should be possible to infer the target path based on a per-import-file prefix or based on the source path.
I'd also like to support directories as sources a bit differently. I already link some entire directories (for example for zsh plugins I checkout via a prehook), but it would be nice if a dot could specify that it's a directory that should be walked and it generates a dot for every file in the tree automagically.
Might look at that next, let me know what you think.
Also it would be nice to bump all deps, but I ran into too many issues.
I created this for my own benefit, but thought it might be useful to others. Let me know if you'd like to do this differently.
My goal was to separate my dofiles into directories a bit more, like one for my zsh files, etc. But it's a bit annoying to replicate all the paths, so this change will (if the setting is true) prefix the source path for every dot with the relative import path. Also duplicate keys are prefixed with their import path and there is an error message when they are found.
Additionally I create directories when missing (based on #253).
I might need/do some more tweaks based on my usage (just started onboarding to this on a new system). For example, I'd like to have some defaulting for a dot target path too. Most of my files are 1-1 the same name or path from source to target, so it should be possible to infer the target path based on a per-import-file prefix or based on the source path. I'd also like to support directories as sources a bit differently. I already link some entire directories (for example for zsh plugins I checkout via a prehook), but it would be nice if a dot could specify that it's a directory that should be walked and it generates a dot for every file in the tree automagically. Might look at that next, let me know what you think.
Also it would be nice to bump all deps, but I ran into too many issues.