Try this out:
echo -en "\\frqq $TM_SELECTED_TEXT\\flqq\"
as command with no input and replace selected text.
On 11 Jul 2007, at 11:46, Christoph-Waibl.at wrote:
Dear friends!
I am using Textmate for my LaTeX projects (writing arcticles at the university).
I want the following macro: I want to mark a text that I have written and then I want to push a special keyboard shortcut to activate it.
Example: "This is a text and it is just an example."
I want to mark the word "text", push a keyboard shortcut and then it should create automatically:
"This is a \frqq text\flqq\ and it is just an example."
Can this be realized with TextMate?
Kind regards!
Chris (Austria)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
********************************************************** Hans-Joerg Bibiko Max Planck Institute for Evolutionary Anthropology Department of Linguistics Deutscher Platz 6 phone: +49 (0) 341 3550 341 D-04103 Leipzig fax: +49 (0) 341 3550 333 Germany e-mail: bibiko@eva.mpg.de **********************************************************