From 23ce1eab419ac2001d61b2b22dd1889ca9214127 Mon Sep 17 00:00:00 2001 From: crazymaster Date: Sat, 17 Aug 2013 01:55:50 +0900 Subject: [PATCH 1/3] Improve liquid snippet --- autoload/neosnippet/snippets/liquid.snip | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/autoload/neosnippet/snippets/liquid.snip b/autoload/neosnippet/snippets/liquid.snip index 87de33a..1a69959 100644 --- a/autoload/neosnippet/snippets/liquid.snip +++ b/autoload/neosnippet/snippets/liquid.snip @@ -77,12 +77,18 @@ snippet include options word {% include ${1:#:TARGET} %} -snippet block +snippet output abbr {{ }} alias {{ options word {{ ${1:#:TARGET} }} +snippet filter +abbr {{ | }} +alias {{ +options word + {{ ${1:#:TARGET} | ${2:#:filter} }} + # Jekyll enhancements @@ -105,3 +111,7 @@ snippet post_url options word {% post_url ${1:#:TARGET} %} +snippet gist +options word + {% gist ${1:#:TARGET} %} + From 4ef59e37bf5b720d25a2b92ed10a445912910f86 Mon Sep 17 00:00:00 2001 From: crazymaster Date: Sat, 17 Aug 2013 15:19:48 +0900 Subject: [PATCH 2/3] Improve liquid snippet --- autoload/neosnippet/snippets/liquid.snip | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/autoload/neosnippet/snippets/liquid.snip b/autoload/neosnippet/snippets/liquid.snip index 1a69959..ea886e0 100644 --- a/autoload/neosnippet/snippets/liquid.snip +++ b/autoload/neosnippet/snippets/liquid.snip @@ -113,5 +113,16 @@ options word snippet gist options word - {% gist ${1:#:TARGET} %} + {% gist `getreg('+')=='' ? '<\`0\`>' : getreg('+')` %} + +snippet template +abbr layout title category +alias --- +options head + --- + layout: ${1} + title: ${2} + category: ${3} + --- + ${0} From 79d14a7677b98cc3ab7617f60587bdc6b179e06c Mon Sep 17 00:00:00 2001 From: crazymaster Date: Sat, 17 Aug 2013 15:34:56 +0900 Subject: [PATCH 3/3] Improve liquid snippet --- autoload/neosnippet/snippets/liquid.snip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/neosnippet/snippets/liquid.snip b/autoload/neosnippet/snippets/liquid.snip index ea886e0..e0e4c90 100644 --- a/autoload/neosnippet/snippets/liquid.snip +++ b/autoload/neosnippet/snippets/liquid.snip @@ -115,7 +115,7 @@ snippet gist options word {% gist `getreg('+')=='' ? '<\`0\`>' : getreg('+')` %} -snippet template +snippet front-matter abbr layout title category alias --- options head