Skip to content

Commit dab87b3

Browse files
committed
Auto Refresh local database on startup
1 parent b8434cf commit dab87b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cheatsheet.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
_localCommandsFileSymlink = os.path.join(_pluginHome, 'Local' + _commandExtension)
1616

1717

18+
def plugin_loaded():
19+
vindow = sublime.active_window()
20+
sublime.set_timeout(lambda: vindow.run_command('cheatsheet_refresh_local_database'), 2000)
21+
1822
class CheatsheetOpenCommand(sublime_plugin.WindowCommand):
1923
def run(self, **args):
2024
cheatsheet = os.path.join(_defaultDatabase, args['filename'])

0 commit comments

Comments
 (0)