View move_by_section.py
This file contains 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 | |
import sublime_plugin | |
class MoveBySectionCommand(sublime_plugin.TextCommand): | |
def move_to_region(self, region: sublime.Region) -> None: | |
sel = self.view.sel() | |
sel.clear() | |
sel.add(region.a) |
View html_tab_completions.py
This file contains 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
from re import Pattern | |
from typing import Optional | |
import re | |
import sublime | |
import sublime_plugin | |
SELECTOR = ', '.join([ | |
'text.html - source - string - meta.tag - text.html.markdown', | |
'text.html.embedded - text.html.embedded source - meta.tag', |