Created
June 20, 2019 10:14
-
-
Save krishnau2/09b78f55bf07c1aa5473b0185c5e9d58 to your computer and use it in GitHub Desktop.
Sublime plugin for drawing line with 'll' command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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