def show_abbreviations(self): abbrevs = [ '{0} --> {1}'.format(item['trigger'], item['contents']) for item in abbrev.Store().get_all() ] self.view.window().show_quick_panel( abbrevs, None, # Simply show the list. flags=sublime.MONOSPACE_FONT)
def run(self, edit, short): if not short: return abbrev.Store().erase(short)
def run(self, edit, short=None, full=None): if not (short and full): self.show_abbreviations() return abbrev.Store().set(short, full)