Home Download Buy Blog Forum Support

Shortcuts and document type.

Shortcuts and document type.

Postby bgustavo on Sun Apr 03, 2011 4:25 pm

how can i make a shortcut like cmd (or super) + i to grab the selected text and replace it with \textit{selected text} ? and is it possible to do this shortcut work only when the document is defined as a latex document?

thank you.
bgustavo
 
Posts: 2
Joined: Sun Apr 03, 2011 4:22 pm

Re: Shortcuts and document type.

Postby guillermooo on Sun Apr 03, 2011 5:53 pm

Sorry for the short answer, but take a look at:

http://sublimetext.info/docs/extensibil ... ppets.html

Paraphrasing Obama, yes you can!
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Shortcuts and document type.

Postby Marciano on Sun Apr 03, 2011 7:33 pm

Please be patient... the LaTeXTools plugin *will* have this functionality. FYI you can grab the most up-to-date version at GitHub:

https://github.com/SublimeText/LaTeXTools

CTRL+I (CMD-I on the Mac) is coming soon for sure. In the meantime, you can use the autocompletion system. IF you type

em<TAB>

you will get \emph{<CURSOR>}; a <TAB> will exit the braces. Similarly, "it" gives you "\textit{}" in text mode and "\mathit{}" in math mode; "bf" gives you "\textbf{}". It's pretty cool!
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Re: Shortcuts and document type.

Postby bgustavo on Sun Apr 03, 2011 10:52 pm

thanks for the quick replies. will look into that.
bgustavo
 
Posts: 2
Joined: Sun Apr 03, 2011 4:22 pm


Return to General Discussion

Who is online

Users browsing this forum: QED1224, yitzhakbg and 23 guests