bordaigorl / sublime-evernote

Open and Save Evernote notes from Sublime Text 3 using Markdown
Other
1.15k stars 106 forks source link

can I flush the data in other's ST without reopen the book #199

Open yuedingwangji opened 6 years ago

yuedingwangji commented 6 years ago

When I open one book with my company's computer. as the same time. I open it with my home compter。 when I finsh my editing in my company PC,how can I get the newest data in my home PC,without reopen_evernote_note . and there is a another question that when I reopen the book, I will have two windows with the editing evernote_note , if I update the note in the old windows because of careless, the old data will cover the new data, how can I avoid this?

bordaigorl commented 6 years ago

Hi, thanks for the feedback. You are making a very good point. At the moment there is no mechanism to handle this, you just have to be careful.

One possible enhancement would be to check if a note is already opened and in that case just switch to the tab. This can be easily implemented.

For the multiple clients scenario, realistically I can only think of offering a "Reload note" command.

To solve the "accidental overwrite" problem robustly, one could implement a check that the version counters match before updating. This will incur in two requests for an update instead of one; however we could also offer a setting for switching the check on or off.

These changes would require some work, if anybody is willing to try implementing them I would be more than happy to review the PR and merge.