Vim icon indicating copy to clipboard operation
Vim copied to clipboard

iCloud syncing

Open Ecco opened this issue 12 years ago • 2 comments

As requested here http://news.ycombinator.com/item?id=3487253

Ecco avatar Jan 20 '12 08:01 Ecco

:+1:

Is this simply a matter of adding it to the entitlements and using URLForUbiquityContainerIdentifier:? Or is there more to it?

I think I know what my next home project will be :D

au-phiware avatar Feb 09 '13 01:02 au-phiware

So this is not as straight forward as making a successful call to URLForUbiquityContainerIdentifier:...

Files in the ubiquity container can be read and written to but changes are not sync'ed. UIDocument appears to perform a lot magic in regards to saving, NSFileCoordinator must always be used to delete a document, netrw is unable to show a listing and NSMetadataQuery needs to be used to produce a correct listing. Not to mention opening files in iCloud and dynamic renaming of files.

It may be possible to write a simple autocommand that saves the contents of a file using UIDocument, but I think a lot of modification of netrw would be required for this feature to be useable.

au-phiware avatar Feb 17 '13 04:02 au-phiware