I am attempting to modify the LaTeX Language Grammar so that I may
style superscripts and subscripts distinctly. I tried to add the
following:
{ name = 'constant.superscript.latex';
match = '\^(\w{1}|\{.*?\}|\\\w*)';
captures = { 1 = { name = 'meta.supersript.latex'; }; };
},
{ name = 'constant.subscript.latex';
match = '_(\w{1}|\{.*?\}|\\\w*)';
captures = { 1 = { name = 'meta.subscript.latex'; }; };
},
However, when I invoke the "show scope" command in the TextMate
bundle, neither of these scopes will appear. (For example, if I type
"Suppose that $\{x_n\}$ is a sequence..." and put the caret after the
underscore, neither "constant.subscript.latex" nor
"meta.subscript.latex" appears in the show scope tooltip.)
I am new to regular expressions, but if I do a find and replace with
those expressions, they do seem to find all occurrences of subscripts
and superscripts. I think I probably don't understand the LaTeX
language grammar, since I have trouble understanding even the
shortest of grammars!
Also, are my naming conventions even close to correct?
For reference, I'm using TextMate 1.5.2 (r1180) and revision 4405 of
the LaTeX bundle from the repository.
Thanks for your help,
Mike Miller
when a project is open, stand-alone editing windows and other windows
(preferences, bundle editor, html view, you name it) don't react to
the cmd+W keystroke (as would be appropriate), but only to cmd+shift
+W. the "Close" shortcut in the File menu is still associated to cmd
+shift+W, while cmd+W is bound to "Close tab". closing all open
projects causes the "Close" shortcut to become again cmd+W.
stupid but annoying.
this bug was probably introduced in the latest revision, or at least
I didn't notice it earlier.
bye,
domenico
Hello all,
I've noticed that when editing using the HTML bundle the Insert
Closing Tag command (Opt+Cmd+.) inserts a closing tag but doesn't
seem to match the indentation of the opening tag.
For example (all tabs are inserted by Textmate automatically):
<ul>
{1 tab}<li>
{2 tab}Lorem ipsum [now press Opt+Cmd+.]
{2 tab}</li> [now press Opt+Cmd+. again]
{2 tab}</ul>
In the above I think it should (or at least I would like) the final
closing li tag to be set 1 tab in, to match the opening li tag, and
the final closing ul to be set with no indent, to match the opening
tag. I think it used to maintain the indent structure, but this might
just be wishful thinking on my part.
Can the bundle be modified to do this?
Thanks in advance,
Matthew
Hello. When I'm doing LaTeX and use \cite or \ref and Option-esc, I
get the dialogue with all the right choices. But when I select one,
the following is inserted into my document:
(\ref{/Applications/TextMate.app/Contents/SharedSupport/Support/bin/ :
11: warning: Insecure world writable dir /Users/apape/bin, mode 040777
lem:twocausalmodels})
How can I suppress/cure the error message? Thanks!
--duus
I'm currently trialling TextMate and like it a lot but would like to print
in colour etc... I see from the Manual that a workaround is to View as PDF
from the Source bundle, but I can't see this option. Am II missing
something?
THanks in advance
Denis
i keep a folder of saved terminals (*.term files) which i use to open
color-coded terminals (blue.term, red.term, green.term, etc).
after using the CTRL-SHIFT-o from textmate to open a terminal at the
current files directory, double-clicking my .term files in finder no
longer opens a terminal, until i close all terminals and re-open
Terminal.app, then the *.term files work again until i next CTRL-
SHIFT-o from textmate.
I was trying to do a new scope for being inside of a certain command
parentheses
eg. trace( 'here is the new scope' ), so that I could do some special
tab triggers inside that scope, but I wasn't able to do it. I tried
all kinds of
combinations for begin and end in the language grammar with no luck.
Apparently I somehow mess up the regular expression.
Can any of you help out ?
Re: Version 1.5.2 (1180)
I was pleased to see that it's possible to enter column editing mode
by hitting the Option key after making a selection but it seems to
behave in an odd way. If I select two complete lines of text and hit
Option then the caret also moves into the line below, which is not
useful because I just wanted to add comments to the start of the
selected two lines. Is this a bug or the way it's supposed to work?
thanks
Martin Baker
www.digital-heaven.co.uk
Hi,
I have a problem with chinese characters that appear to overlap each
other a little in textmate.
Am I missing something or is there a way to fix this – other than
inserting whitespaces in between?
I am using QIM as input method and it works for me.
Kolja.
Thomas,
when I commit directly from the status window there are two visual
glitches (IMHO):
1.
You can see two M's here, but nowhere a visual explanation what
changed? Is there an easy and aesthetic way to add some feedback on
this? (I know, one could just look up the def in the svn manuals… ;))
2. The commit-log from this status window shows a very small font for
me, is it possible to increase this?:
3. The mouse-over effects are fabulous!
Dan