Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.3 KiB

7 months ago
7 months ago
  1. # A valid snippet should starts with:
  2. #
  3. # snippet trigger_word [ "description" [ options ] ]
  4. #
  5. # and end with:
  6. #
  7. # endsnippet
  8. #
  9. # Snippet options:
  10. #
  11. # b - Beginning of line.
  12. # i - In-word expansion.
  13. # w - Word boundary.
  14. # r - Regular expression
  15. # e - Custom context snippet
  16. # A - Snippet will be triggered automatically, when condition matches.
  17. #
  18. # Basic example:
  19. #
  20. # snippet emitter "emitter properties" b
  21. # private readonly ${1} = new Emitter<$2>()
  22. # public readonly ${1/^_(.*)/$2/}: Event<$2> = this.$2.event
  23. # endsnippet
  24. #
  25. # Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
  26. snippet ,b "Bold" A
  27. <b>$1</b> $2
  28. endsnippet
  29. snippet ,it "Italics" A
  30. <em>$1</em> $2
  31. endsnippet
  32. snippet ,1 "Header 1" A
  33. <h1>$1</h1>
  34. $2
  35. endsnippet
  36. snippet ,2 "Header 2" A
  37. <h2>$1</h2>
  38. $2
  39. endsnippet
  40. snippet ,3 "Header 3" A
  41. <h3>$1</h3>
  42. $2
  43. endsnippet
  44. snippet ,p "Paragraph" A
  45. <p>
  46. $1
  47. </p>
  48. $2
  49. endsnippet
  50. snippet ,a "Hyperlink" A
  51. <a href="$1">$2</a> $3
  52. endsnippet
  53. snippet ,e "External Hyperlink" A
  54. <a target="_blank" href="$1">$2</a> $3
  55. endsnippet
  56. snippet ,ul "Itemization" A
  57. <ul>
  58. <li>$1</li>
  59. </ul>
  60. endsnippet
  61. snippet ,li "List Element" A
  62. <li>$1</li>
  63. endsnippet
  64. snippet ,ol "Enumeration" A
  65. <ol>
  66. <li>$1</li>
  67. </ol>
  68. endsnippet
  69. snippet ,im "Image" A
  70. <img src="$1" alt="$2"> $3
  71. endsnippet
  72. snippet & "Et Sign" A
  73. &amp; $1
  74. endsnippet