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
add $name.vcf to a new book? #12
Comments
For the first question, let me first say that I am just guessing, but I believe you actually have to commit the .vcf file to the git repository. When the code saves a contact, it appears the following happens: def save_contact(contact)
@disk.save_contact(contact)
add("#{contact.id}.vcf")
commit("save_contact(#{contact.id})")
end So, for your case, I'd move the files into ~/contacts and then try: $ git add .
$ git commit -m "Imported contacts" EDIT: I tested the above and it seemed to work fine. For your second question, you need to run the commands verbatim. No need to replace the [address book] with anything. $ echo "[address book]" > ~/.pplconfig
$ echo path = "`pwd`" >> ~/.pplconfig |
i'm not sure what i'm doing wrong... [crunchbang5010:storge] ~ $ rm -fr contacts/ I executed the other commands from the second question as well, thanks. |
The only thing I can think of is that you need to make sure that the configuration in ~/.pplconfig is pointed to the correct directory. $ cat ~/.pplconfig Mine outputs: [address book]
path = /Users/tsr/Documents/contacts Make sure that your's points to your desired contacts folder. Hope that helps! |
[crunchbang5010:storge] ~ $ cat ~/.pplconfig ...yep, it points to there. maybe those contacts are doomed and i have to start over. that would make me sad. ...wait, does this have to be run in contacts/ or ~/? echo "[address book]" > ~/.pplconfig ...i thought as a .config file, those would be run in ~/$user. maybe that would confuse it if run in the wrong place? |
You have to run this in your
This is because that When I tried to imitate the steps you described - ppl init ~/contacts, copy *.vcf files, commit manually - I actually made this exact mistake. As a result, The output of
You might as well delete this, it doesn't do anything. I'll delete the unused constant referring to it for now: there's currently no repository-level configuration in place. It's something we'll probably want one day but for now there is none. |
thank you very much. that worked! all the contacts are integrated now. |
It's working? So glad to hear that! |
Okay, I'm gonna close this now. This isn't the first time that this whole For starters, I think it's time to start a "configuration section" in the documentation. With a page each for things like the address book path, there ought to be enough space to explain things in proper detail. |
...maybe just direct as hell. $ echo "[address book]" > ~/.pplconfig type exactly this while in your contacts directory it's what my thick skull needed ;) |
first question: is there a way i can move contacts made in the wrong dir to the address book?
i made a mistake and entered about 50 contacts outside of my address book. i tried to move all the $name.vcf into ~/contacts and tried 'ppl ls' but it listed only the two contacts i had in there previously.
second question: what goes in this [bracket] below?
i tried to do this:
but at my next attempt to create a contact, this happened:
...on balance, the first question matters more to me, since it was a lesson learned to be in the right directory the first time. but knowing the second question will save me in the future.
thanks again.
~storge
EDIT
The text was updated successfully, but these errors were encountered: