In the following snippet
of the package LaTeX
(Sublime Text 3) every time I enter a espacio
, *
, ?
or .
in the part of :
label{sec:*********} y % section ********* (end)
substitutes the characters mentioned by the underline _
.
<snippet>
<content><![CDATA[
\section{${1:section name}} % (fold)
\label{sec:${2:${1/\\w+\{(.*?)\}|\(.)|(\w+)|([^\w\]+)/(?4:_:\L$1$2$3)/g}}}
${0:$TM_SELECTED_TEXT}
% section $2 (end)]]></content>
<tabTrigger>sec</tabTrigger>
<scope>text.tex.latex</scope>
<description>Section</description>
</snippet>
So, my question is:
How can you modify the snippet
to replace the vowels with a tilde with a vowel without a tilde?
That is: if you enter á
, é
, í
, ó
and ú
that replace it with a
, e
, i
, o
and u
.