Home Download Buy Blog Forum Support

How to modify or remove snippet?

How to modify or remove snippet?

Postby Eighty on Mon Mar 29, 2010 4:58 pm

I have a problem when editing LaTeX. I want to write the following, so I type "begin<tab>Theorem<tab>".
Code: Select all
\begin{Theorem}
    <move caret here>
\end{Theorem}
However, the emphasize snippet kicks in, and writes out
Code: Select all
\begin{Theor\emph{} }
   
\end{Theor\emph{} }
This is obviously not what I want. Ideally, the emphasize snippet shouldn't react there. But how could it know that? The easiest way for me to fix this is to delete Emphasize.sublime-snippet, or to edit it and change the binding from "em" to, say, "emph". Sublime replaces this file upon startup though, so deleting it does not work, and editing it and making it readonly causes Sublime to crash upon startup.

How do I fix this? :)
Eighty
 
Posts: 3
Joined: Sun Feb 21, 2010 4:17 pm

Re: How to modify or remove snippet?

Postby Shoozza on Tue Mar 30, 2010 11:01 am

This thread is about a similar problem maybe it helps: viewtopic.php?f=3&t=643
Shoozza
 
Posts: 7
Joined: Wed Mar 24, 2010 4:11 pm

Re: How to modify or remove snippet?

Postby Eighty on Tue Mar 30, 2010 8:50 pm

I didn't find a solution in that thread. I would rather just remove the snippet than change the functionality. How can I do that?

Edit: Hehe, here's my hacky solution. I made my own User snippet, which as soon as it runs deletes the emph snippet. :)
Eighty
 
Posts: 3
Joined: Sun Feb 21, 2010 4:17 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 35 guests