abo-abo / pamparam

Simple and fast flashcards for Emacs
229 stars 16 forks source link

Syncing the wrong file produces empty repo #24

Closed daphniz closed 4 years ago

daphniz commented 4 years ago

It may be a good idea to prevent -sync from creating a repo if there are no :cards: trees. Otherwise, if you accidentally try to sync in the wrong buffer, you get a repo.

Perhaps also look in -path if there is nothing in the current buffer.

abo-abo commented 4 years ago

Thanks, please test.