add $name.vcf to a new book?
#12

Comments

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.

...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

This comment has been minimized.

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:

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:

...i thought as a .config file, those would be run in ~/$user. maybe that would confuse it if run in the wrong place?
i ask because i don't have a default .pplconfig anywhere. i do have a ~/contacts/.ppl/config but it's an empty file.

...i thought as a .config file, those would be run in ~/$user. maybe that would confuse it if run in the wrong place?
i ask because i don't have a default .pplconfig anywhere. i do have a ~/contacts/.ppl/config but it's an empty file.

This comment has been minimized.

You have to run this in your ~/contacts directory or wherever you put that directory. If you run echo path = "'pwd'" >> ~/.pplconfig in ~/, then it'll write the following to your ~/.pplconfig:

path = /home/storge

This is because that pwd in the command is replaced with your current working directory at the time of running the command. In the quick start guide, this works because if you've followed along with the commands then your current working directory will be ~/contacts.

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 ppl ls was empty even though the contacts were in place and committed.

i do have a ~/contacts/.ppl/config but it's an empty file.

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.

You have to run this in your ~/contacts directory or wherever you put that directory. If you run echo path = "'pwd'" >> ~/.pplconfig in ~/, then it'll write the following to your ~/.pplconfig:

path = /home/storge

This is because that pwd in the command is replaced with your current working directory at the time of running the command. In the quick start guide, this works because if you've followed along with the commands then your current working directory will be ~/contacts.

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 ppl ls was empty even though the contacts were in place and committed.

i do have a ~/contacts/.ppl/config but it's an empty file.

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.

This comment has been minimized.

This isn't the first time that this whole ~/.pplconfig address book path thing has caused confusion. I'm gonna have a think about ways of making this more clear and I'm open to suggestions.

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.

This isn't the first time that this whole ~/.pplconfig address book path thing has caused confusion. I'm gonna have a think about ways of making this more clear and I'm open to suggestions.

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.