Skip to content

Instantly share code, notes, and snippets.

@dylan-k
Last active March 31, 2016 17:55
Show Gist options
  • Save dylan-k/2915b607baee101e91c3 to your computer and use it in GitHub Desktop.
Save dylan-k/2915b607baee101e91c3 to your computer and use it in GitHub Desktop.
Sublime Text Snippet to Create YAML Metadata Headers for Poems in Markdown
<snippet>
<content><![CDATA[
---
title: "$1"
author: Dylan Kinnett
date: $2
publication:
status: Draft
tags: []
note: |
X lines
---
# $3
]]></content>
<tabTrigger>poem</tabTrigger>
<!-- save this file to /Users/yourname/Library/Application Support/Sublime Text 2/Packages/User -->
<!-- see also: http://www.granneman.com/webdev/editors/sublime-text/top-features-of-sublime-text/quickly-insert-text-and-code-with-sublime-text-snippets/ -->
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment