Commit 12340bce authored by Ian Dennis Miller's avatar Ian Dennis Miller

update snippets

parent 84df6edc
{
"Thesis_Article_Citation": {
"prefix": "cite",
"Citation_Snippet": {
"prefix": ["cite", "quote", "claim"],
"body": [
"# quote: $1"
"[ a thesis:Claim ;",
"\tthesis:appearance <#${TM_FILENAME/.ttl//}> ;",
"\tthesis:quote \"$1\" ;",
"\tthesis:source [ a thesis:Article ;",
"\t\tdc:authors \"$2\" ;",
"\t\tdc:title \"$3\" ;",
"\t\tdc:year $4 ;",
"\t] ;",
// "\tthesis:quote \"${1/^ *(.+?\\.*) *$/$1/g}\" ;",
"\tthesis:quote \"${1/\"/\\\"/g}\" ;",
// "\tthesis:quote \"${1/^ *(.+\\.*) *$/${1/\"//g}/}\" ;",
"$0",
"] .",
"",
""
],
"description": "Article-citation Snippet"
"description": "Citation Snippet"
},
"Self_Citation_Snippet": {
"prefix": "self",
"prefix": ["slf", "self"],
"body": [
"[ a thesis:Claim ;",
"\tthesis:appearance <#${TM_FILENAME/.ttl//}> ;",
"\tthesis:quote \"$1\" ;",
"\tthesis:source <#${TM_FILENAME/.ttl//}> ;",
"] .",
"",
"",
],
"description": "Self-citation Snippet"
},
......@@ -35,9 +27,9 @@
"body": [
"# source: $1",
"\tthesis:source [ a thesis:Article ;",
"\t\tdc:authors \"${1/^(.+?)[0-9][0-9][0-9][0-9][ \.]*.*$/$1/g}\" ;",
"\t\tdc:title \"${1/^.+[0-9][0-9][0-9][0-9][ \.]*(.*)$/$1/g}\" ;",
"\t\tdc:year ${1/.*([0-9][0-9][0-9][0-9]).*/$1/g} ;",
"\t\tdc:authors \"${1/^ *(.+?) *\\(*[0-9][0-9][0-9][0-9]\\)*[ \\.]*.*$/$1/g}\" ;",
"\t\tdc:title \"${1/^[ \\.]*.+\\(*[0-9][0-9][0-9][0-9]\\)*[ \\.]*(.+?)[ \\.\\?]*$/$1/g}\" ;",
"\t\tdc:year ${1/.*\\(*([0-9][0-9][0-9][0-9])\\)*.*/$1/g} ;",
"\t] ;",
""
],
......@@ -73,4 +65,12 @@
],
"description": "Visfact Configuration"
}
"Note_Mini_Snippet": {
"prefix": "note",
"body": [
"\tthesis:note \"$1\" ;",
""
],
"description": "Note mini Snippet"
},
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment