Ansible_workstation/files/dotfiles/ultisnips/rst.snippets

46 lines
988 B
Plaintext
Raw Normal View History

2020-08-11 14:50:24 +00:00
# A valid snippet should starts with:
#
# snippet trigger_word [ "description" [ options ] ]
#
# and end with:
#
# endsnippet
#
# Snippet options:
#
# b - Beginning of line.
# i - In-word expansion.
# w - Word boundary.
# r - Regular expression
# e - Custom context snippet
# A - Snippet will be triggered automatically, when condition matches.
#
# Basic example:
#
# snippet emitter "emitter properties" b
# private readonly ${1} = new Emitter<$2>()
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
# endsnippet
#
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
snippet index "Structure for an index file" b
${1:title}
${1/./#/g}
:date: ${2:`date +%Y-%m-%d`}
:modified: ${2}
:authors: Bertrand Benjamin
:category: ${3}
:summary: ${1}
endsnippet
snippet link "link" i
\`${1:link title} <${2:link target}>\`_
endsnippet
snippet img "Image" b
.. image:: ${1:filename}
:height: 200px
:alt: ${2:Description}
endsnippet