dfm
dfm copied to clipboard
Create interactive import process
For people that don't quite understand what every dotfile in their $HOME does, but want to see each file as it's added. Useful for people that don't want to accidentally add e.g. private keys/passwords.
Can you describe the use case for this feature? What's the sequence of commands?
For brand new users of dfm, importing dotfiles for the very first time on their very first machine. I'd love to be able to do 'dfm import .*' but of course that matches every file in the current directory and parent directory, as well as private keys and other things I wouldn't want managed.
I imagine this behaving like 'git add -i' if you're looking for UX inspiration. For each file, the user is presented the file name and path, and can add/view/recurse/skip each file/directory.
I'm still not sure yet how git subtrees work, would it be possible to detect that a folder is a repo and then squash add it as a subtree?
Cool. That makes sense. I updated the title of the issue to say 'import' instead of 'install'.
As far as subtrees go, I'm pretty sure it would be impossible to detect that a folder is a subtree because you would need to know what other git repo it's a subtree merge of.
On the initial import, there are no subtrees, right? Just full repositories you can 'git rev-parse', right?