Skip to content

Instantly share code, notes, and snippets.

@krishnau2
Created June 20, 2019 10:14
Show Gist options
  • Save krishnau2/09b78f55bf07c1aa5473b0185c5e9d58 to your computer and use it in GitHub Desktop.
Save krishnau2/09b78f55bf07c1aa5473b0185c5e9d58 to your computer and use it in GitHub Desktop.
Sublime plugin for drawing line with 'll' command.
import sublime, sublime_plugin
class DrawLineCommand(sublime_plugin.EventListener):
def on_query_completions(self, view, prefix, locations):
if prefix in ('ll'):
val = '-'*50
else:
val = None
return [(prefix, prefix, val)] if val else []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment