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

Add a sync on opening the file... #12

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

hydralien
Copy link

...by first copying to a temp file, then comparing local file with temp and then (if file are not equal) asking user whether she wants to overwrite local file. There is a config parameter sync_on_open to disable it (it's true by default - I thought of option to enable it, but then this plugin is managed manually, so it shouldn't disrupt anyone's workflow till someone deliberately pulls changes).

Generally there should be more elaborate mechanism of handling remote changes (emacs does it pretty well), but this is something to start with.

Let me know if you have any questions or need extra details.

Boris Turchik and others added 7 commits August 1, 2016 16:41
…omparing local file with temp and then (if file are not equal) asking user whether she wants to overwrite local file. There is a config parameter sync_on_open to switch it off.
…so handle the case when remote file does not exist. And update documentation to reflect this new functionality, too.
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

Successfully merging this pull request may close these issues.

None yet

1 participant