dfm icon indicating copy to clipboard operation
dfm copied to clipboard

Create interactive import process

Open nsp opened this issue 12 years ago • 4 comments

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.

nsp avatar Sep 09 '12 23:09 nsp

Can you describe the use case for this feature? What's the sequence of commands?

justone avatar Oct 19 '12 01:10 justone

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?

nsp avatar Oct 19 '12 08:10 nsp

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.

justone avatar Oct 20 '12 20:10 justone

On the initial import, there are no subtrees, right? Just full repositories you can 'git rev-parse', right?

nsp avatar Oct 21 '12 07:10 nsp