MobileOrg / mobileorg

MobileOrg iPhone App
http://mobileorg.github.io
GNU General Public License v2.0
557 stars 70 forks source link

Questions about syncing linked files #252

Open stormlash opened 4 years ago

stormlash commented 4 years ago

My mobileorg takes a long time to sync because it tries to download a long list of files that are linked to from my main .org documents. That prompts a few questions:

  1. How would I utilize this feature? I haven't been able to figure out how I'd get these linked files exported to where mobile org could see them as part of org-mobile-push.
  2. Is this feature actually utilized? I'd prefer to just disable syncing linked files entirely since I haven't found a way to use it.
dive commented 4 years ago

Hi @stormlash,

I did not try it, but that's what I see in the code: by default, as I can see in the org-mobile.el implementation, it syncs only files mentioned in agendas or located directly in org-directory. If you want to sync additional files you have to specify org-mobile-files with an explicit list of files/directories.

org-mobile-files: Files to be staged for MobileOrg. This is basically a list of files and directories. Files will be staged directly. Directories will be search for files with the extension ‘.org’.

stormlash commented 4 years ago

Sorry to revisit this after so long - somehow I missed this reply and only just now thought to check in again.

In my case, I'm not interested in having the files be staged for mobileorg at all - but the fact that MobileOrg is looking for them on every sync accounts for about 80% of the sync time. Would y'all be receptive to a PR to add a toggle to the settings to configure whether sync operations should attempt to download referenced files?

webframp commented 4 years ago

Hey @stormlash I wouldn’t be opposed to that if it’s a feature you want to add, default can just be current behavior but the toggle in the settings can switch to what you’ve mentioned