Skip to content

Instantly share code, notes, and snippets.

@jwortmann
jwortmann / move_by_section.py
Created Feb 4, 2022
Move to next/previous code section with key binding in Sublime Text
View move_by_section.py
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)
@jwortmann
jwortmann / html_tab_completions.py
Last active Aug 11, 2022
Sublime Text 3 style tab completions for HTML tags
View html_tab_completions.py
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',