ultisnips now better than ever before

master
TiynGER 5 years ago
parent b79871a3b1
commit e02010a0cd

@ -19,63 +19,70 @@
# #
# snippet emitter "emitter properties" b # snippet emitter "emitter properties" b
# private readonly ${1} = new Emitter<$2>() # private readonly ${1} = new Emitter<$2>()
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event # public readonly ${1/^_(.*)/$2/}: Event<$2> = this.$2.event
# endsnippet # endsnippet
# #
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt # Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
snippet ,b "Bold" A snippet ,b "Bold" A
<b>$0</b> <b>$1</b> $2
endsnippet endsnippet
snippet ,it "Italics" A snippet ,it "Italics" A
<em>$0</em> <em>$1</em> $2
endsnippet endsnippet
snippet ,1 "Header 1" A snippet ,1 "Header 1" A
<h1>$0</h1> <h1>$1</h1>
$2
endsnippet endsnippet
snippet ,2 "Header 2" A snippet ,2 "Header 2" A
<h2>$0</h2> <h2>$1</h2>
$2
endsnippet endsnippet
snippet ,3 "Header 3" A snippet ,3 "Header 3" A
<h3>$0</h3> <h3>$1</h3>
$2
endsnippet endsnippet
snippet ,p "Paragraph" A snippet ,p "Paragraph" A
<p>$0</p> <p>$1</p>
$2
endsnippet endsnippet
snippet ,a "Hyperlink" A snippet ,a "Hyperlink" A
<a href="$0">$1</a> <a href="$1">$2</a> $3
endsnippet endsnippet
snippet ,e "External Hyperlink" A snippet ,e "External Hyperlink" A
<a target="_blank" href="$0">$1</a> <a target="_blank" href="$1">$2</a> $3
endsnippet endsnippet
snippet ,ul "Itemization" A snippet ,ul "Itemization" A
<ul> <ul>
<li>$0</li> <li>$1</li>
$2
</ul> </ul>
endsnippet endsnippet
snippet ,li "List Element" A snippet ,li "List Element" A
<li>$0</li> <li>$1</li>
$2
endsnippet endsnippet
snippet ,ol "Enumeration" A snippet ,ol "Enumeration" A
<ol> <ol>
<li>$0</li> <li>$1</li>
$2
</ol> </ol>
endsnippet endsnippet
snippet ,im "Image" A snippet ,im "Image" A
<img src="$0" alt="$1"> <img src="$1" alt="$2"> $3
endsnippet endsnippet
snippet & "Et Sign" A snippet & "Et Sign" A
&amp; &amp; $1
endsnippet endsnippet

@ -26,89 +26,92 @@
snippet ,fr "Frame" A snippet ,fr "Frame" A
\begin{frame} \begin{frame}
\frametitle{} \frametitle{$1}
$0 $2
\end{frame} \end{frame}
endsnippet endsnippet
snippet ,em "Emphasis" A snippet ,em "Emphasis" A
\emph{$0} \emph{$1}
endsnippet endsnippet
snippet ,bf "Bold" A snippet ,bf "Bold" A
\textbf{$0} \textbf{$1} $2
endsnippet endsnippet
snippet ,it "Italic" A snippet ,it "Italic" A
\textit{$0} \textit{$1} $2
endsnippet endsnippet
snippet ,ct "Text cite" A snippet ,ct "Text cite" A
\textcite{$0} \textcite{$1} $2
endsnippet endsnippet
snippet ,cp "Parenthesis cite" A snippet ,cp "Parenthesis cite" A
\parencite{$0} \parencite{$1} $2
endsnippet endsnippet
snippet ,ol "Enumeration" A snippet ,ol "Enumeration" A
\begin{enumerate} \begin{enumerate}
\item $0 \item $1
$2
\end{enumerate} \end{enumerate}
endsnippet endsnippet
snippet ,ul "Itemization" A snippet ,ul "Itemization" A
\begin{itemize} \begin{itemize}
\item $0 \item $1
$2
\end{itemize} \end{itemize}
endsnippet endsnippet
snippet ,li "List element" A snippet ,li "List element" A
\item $0 \item $1
$2
endsnippet endsnippet
snippet ,ref "Reference" A snippet ,ref "Reference" A
\ref{$0} \ref{$1} $2
endsnippet endsnippet
snippet ,tab "Tabular" A snippet ,tab "Tabular" A
\begin{tabular} \begin{tabular}
$0 $1
\end{tabular} \end{tabular}
endsnippet endsnippet
snippet ,a "Hyperlink" A snippet ,a "Hyperlink" A
\href{$0}{$1} \href{$1}{$2}
endsnippet endsnippet
snippet ,sc "Small caps" A snippet ,sc "Small caps" A
\textsc{$0} \textsc{$1} $2
endsnippet endsnippet
snippet ,chap "Chapter" A snippet ,chap "Chapter" A
\chapter{$0} \chapter{$1}
$1 $2
endsnippet endsnippet
snippet ,sec "Section" A snippet ,sec "Section" A
\section{$0} \section{$1}
$1 $2
endsnippet endsnippet
snippet ,ssec "Subsection" A snippet ,ssec "Subsection" A
\subsection{$0} \subsection{$1}
$1 $2
endsnippet endsnippet
snippet ,sssec "Subsubsection" A snippet ,sssec "Subsubsection" A
\subsubsection{$0} \subsubsection{$1}
$1 $2
endsnippet endsnippet
snippet ,up "Use Packagage" A snippet ,up "Use Packagage" A
\usepackage{$0} \usepackage{$1}
endsnippet endsnippet
snippet ,tt "Typewriter" A snippet ,tt "Typewriter" A
\texttt{$0} \texttt{$1} $2
endsnippet endsnippet

Loading…
Cancel
Save