diff --git a/snippets/text-mode/python-mode/class b/snippets/text-mode/python-mode/class index 36f236f..2724106 100644 --- a/snippets/text-mode/python-mode/class +++ b/snippets/text-mode/python-mode/class @@ -1,3 +1,4 @@ +#contributor : Orestis Markou #name : class ... : # -- class ${1:cname}(${2:object}): diff --git a/snippets/text-mode/python-mode/def b/snippets/text-mode/python-mode/def index 1653770..70e248c 100644 --- a/snippets/text-mode/python-mode/def +++ b/snippets/text-mode/python-mode/def @@ -1,3 +1,4 @@ +#contributor : Orestis Markou #name : def ... : # -- def ${1:fname}(${self}): diff --git a/snippets/text-mode/rst-mode/chapter b/snippets/text-mode/rst-mode/chapter new file mode 100644 index 0000000..6474c00 --- /dev/null +++ b/snippets/text-mode/rst-mode/chapter @@ -0,0 +1,6 @@ +#name : Chapter title +# -- +${1:Chapter} +${1:$(make-string (string-width text) ?\=)} + +$0 \ No newline at end of file diff --git a/snippets/text-mode/rst-mode/section b/snippets/text-mode/rst-mode/section new file mode 100644 index 0000000..76087ed --- /dev/null +++ b/snippets/text-mode/rst-mode/section @@ -0,0 +1,6 @@ +#name : Section title +# -- +${1:Section} +${1:$(make-string (string-width text) ?\-)} + +$0 \ No newline at end of file