sublime-evernote icon indicating copy to clipboard operation
sublime-evernote copied to clipboard

automatically revert on note getting focus?

Open axfelix opened this issue 9 years ago • 1 comments
trafficstars

this might be a good idea -- Sublime will automatically refresh a text file if it's changed in the background (e.g. via dropbox sync) when it gets focus again.

axfelix avatar Jun 29 '16 16:06 axfelix

Since this involves a potentially expensive interaction with the server I would not include this. Instead, when I (or somebody who wants to contribute) will find the time, a command for synch with the server will be added.

In the meantime you can fix this by creating a custom plugin with

import sublime_plugin
class EvernoteRevertListener(sublime_plugin.EventListener):
    def on_activated(view):
        if view.settings().get("$evernote_guid", False):
            view.run_command("revert_to_evernote")

bordaigorl avatar Jun 29 '16 17:06 bordaigorl