Skip to content
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

Any way to sync modified org files from sub-dirs back to PC? #293

Closed
whatacold opened this issue Mar 1, 2024 · 1 comment
Closed

Any way to sync modified org files from sub-dirs back to PC? #293

whatacold opened this issue Mar 1, 2024 · 1 comment

Comments

@whatacold
Copy link

Hi folks,

I set up org-mobile to push some files in ~/org and its sub-dirs to
the staged area, for example,

(add-to-list 'org-mobile-files "~/org/aaa.org")
(add-to-list 'org-mobile-files "~/org/bb/cc.org")
(add-to-list 'org-mobile-files "~/org/bb/dd.org")

It's ok to sync these files to MobileOrg, no problem. But if I modify,
say, cc.org in MobileOrg, and then sync it back to my PC, it always
results in a conflict, as org-mobile-pull thinks it's
"~/org/cc.org" on my PC, which is definitely wrong.

How do you deal with this use case? Or is it even possible? I took a
quick look at all org-mobile-* variables but failed to find anything
interesting.

@whatacold
Copy link
Author

Problem solved!

Turns out that it was caused by a different org-directory value,
which I set it to ~/org/gtd/ some time ago. It makes org-mobile-push
to put files like "~/org/bb/cc.org" as a direct cc.org under
org-mobile-directory (without the sub-directory). The problem was
gone after I changed org-directory back to the default ~/org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant