Skip to content

Instantly share code, notes, and snippets.

@BenBanerjeeRichards
Created September 24, 2021 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenBanerjeeRichards/192c11f3b547c53a5688c639a763529b to your computer and use it in GitHub Desktop.
Save BenBanerjeeRichards/192c11f3b547c53a5688c639a763529b to your computer and use it in GitHub Desktop.
%YAML 1.2
---
# http://www.sublimetext.com/docs/syntax.html
name: Notes
file_extensions:
- txt
scope: text.plain
contexts:
main:
- match: '^[^\s].+:[\s]*\n'
scope: heading.primary
- match: '^.+:[\s]*\n'
scope: heading.secondary
- match: '^\s+([\*-]|[\d]+\.)\s'
scope: bullet
- match: ^\s+(☐)\s(.+)$
captures:
1: task.icon-open
2: task.open
- match: ^\s+(✘)\s(.+)$
captures:
1: task.icon-cancelled
2: task.cancelled
- match: ^\s+(✔)\s(.+)$
captures:
1: task.icon-completed
2: task.completed
- match: ✔
scope: task.icon
- match: (http|https)\://[^\s]+
scope: link
- match: '[A-Z]{2,6}\-[\d]{1,6}'
scope: link
- match: '`.+`'
scope: code.inline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment