Hi,
there are two things that puzzle me in the LaTeX language mode of TM:
Firstly, the insertion of an \item is bound to -^-, the Enter key or fn-Return, but all I ever get is a new line without the \item.
Secondly, there is a macro "LaTeX: Generic Completion" that calls ""$ {TM_BUNDLE_PATH}/Macros/LaTeXcomplete.pl""; The file LaTeXcomplete.pl exists in my LaTeX bundle, but I still get the following error: bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or directory Other commands, such as LaTeX Tidy work, even though they use the same TM_BUNDLE_PATH variable.
I have found that with other commands, if you change anything - even if it's only the key-binding - a copy of the command is generated in the user's Library/Application\ Suppurt/TextMate/Bundles/ directory. If the command invokes some file in the main Library/.../Bundles/..., the command gets broken, since those files are not copied, but obviously the TM_BUNDLE_PATH variable then points to the user's path. I have put symbolic links to the original files in my private copy of the bundle, but this is not very elegant ...
Another minor point is the lack of support for correct syntax colouring of \verb!%! ... but this is not used too frequently ;-)
I'd be grateful for any help with my problems (perhaps I'm just missing some setting), Berndt
On 25/06/2005, at 10.35, Berndt Farwer wrote:
Firstly, the insertion of an \item is bound to -^-, the Enter key or fn-Return, but all I ever get is a new line without the \item.
That's because the scope was also set. So only when the caret is in the scope set for the snippet, would enter do this -- I'm trying to establish the convention that enter continues the thing one is in, i.e. for line comments it continue the comment, for bullet points (using *, •, or ·) in plain text, it makes a new point on the next line etc.
As for LaTeX, the grammar rule to actually markup the scope for \item was temporarily disabled. I've enabled it in the grammar on the repository and updated the scope for the snippet. So this will work for 1.1b15, or if you do an svn checkout of the LaTeX bundle.
The file LaTeXcomplete.pl exists in my LaTeX bundle, but I still get the following error: bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or directory Other commands, such as LaTeX Tidy work, even though they use the same TM_BUNDLE_PATH variable.
It seems there's a problem with TM_BUNDLE_PATH used in commands called from macros (i.e. it's not setup to the macros bundle). I'll look into this later — thanks!
[...] I have put symbolic links to the original files in my private copy of the bundle, but this is not very elegant ...
No, unfortunately the better solution hasn't been found yet.
Another minor point is the lack of support for correct syntax colouring of \verb!%! ... but this is not used too frequently ;-)
The grammars are fully editable! :) I have no idea what it does, but if Brad does, he most lkely will add support for it. Otherwise submit a test-case with some explanation.
Thanks, but ...
On 25 Jun 2005, at 11:16 Uhr, Allan Odgaard wrote:
On 25/06/2005, at 10.35, Berndt Farwer wrote:
Firstly, the insertion of an \item is bound to -^-, the Enter key or fn-Return, but all I ever get is a new line without the \item.
That's because the scope was also set. So only when the caret is in the scope set for the snippet, would enter do this -- I'm trying to establish the convention that enter continues the thing one is in, i.e. for line comments it continue the comment, for bullet points (using *, •, or ·) in plain text, it makes a new point on the next line etc.
As for LaTeX, the grammar rule to actually markup the scope for \item was temporarily disabled. I've enabled it in the grammar on the repository and updated the scope for the snippet. So this will work for 1.1b15, or if you do an svn checkout of the LaTeX bundle.
... after a svn checkout, I see the scope you mention, but still get only new lines.
On 25 Jun 2005, at 12:05 Uhr, Allan Odgaard wrote:
On 25/06/2005, at 11.48, Berndt Farwer wrote:
... after a svn checkout, I see the scope you mention, but still get only new lines.
The enter key only works when there's alreay an \item on the line.
Try pressing ctrl-shift-T to see the scope.
The scope is correct. Now it works with fn-Return, but not with the Enter (-^-) key on my PowerBook. I thought that I had tried all combinations before, but must have missed the one that works ;-)
Thanks again for the great work Allan and Brad!
The enter key (and fn-return on my powerbook) is working fine for me with the new scope rule Allan committed. At least it adds the \item on the next line... So I'm not sure what might be happening for you. When I type ctrl-shift-T at the end of a \item xx x yyy foo bar line the scope I see is:
text.latex meta.environment.list.latex meta.scope.item.latex
Is that what you see too?
Can you send me an example of \verb!%! in use? I will add it to the test case file and look into updating the syntax rules to cover it. After more years than I will admit I have not seen that particular construct. What does it mean?
Thanks,
Brad
On Jun 25, 2005, at 4:48 AM, Berndt Farwer wrote:
Thanks, but ...
On 25 Jun 2005, at 11:16 Uhr, Allan Odgaard wrote:
On 25/06/2005, at 10.35, Berndt Farwer wrote:
Firstly, the insertion of an \item is bound to -^-, the Enter key or fn-Return, but all I ever get is a new line without the \item.
That's because the scope was also set. So only when the caret is in the scope set for the snippet, would enter do this -- I'm trying to establish the convention that enter continues the thing one is in, i.e. for line comments it continue the comment, for bullet points (using *, •, or ·) in plain text, it makes a new point on the next line etc.
As for LaTeX, the grammar rule to actually markup the scope for \item was temporarily disabled. I've enabled it in the grammar on the repository and updated the scope for the snippet. So this will work for 1.1b15, or if you do an svn checkout of the LaTeX bundle.
... after a svn checkout, I see the scope you mention, but still get only new lines.________________________________________________________________ ______ 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
On 25/06/2005, at 14.01, Brad Miller wrote:
Can you send me an example of \verb!%! in use? I will add it to the test case file and look into updating the syntax rules to cover it. After more years than I will admit I have not seen that particular construct. What does it mean?
It's used for inline verbatim, kinda like the larger \begin {verbatim}..\end{verbatim} block. The delimiter is, AFAIK, user- supplied and doesn't have to be |, although you see that mostly. It works like this: \verb|......| Where the ... denote the verbatim stuff. I could also be \verb!some verbatim text! etc.
-- Sune.
Thanks Sune,
I parsed \verb in a more generic sense thinking that this could apply to many different command verbs. This shouldn't be too hard to add.
Brad
On Jun 25, 2005, at 7:09 AM, Sune Foldager wrote:
On 25/06/2005, at 14.01, Brad Miller wrote:
Can you send me an example of \verb!%! in use? I will add it to the test case file and look into updating the syntax rules to cover it. After more years than I will admit I have not seen that particular construct. What does it mean?
It's used for inline verbatim, kinda like the larger \begin {verbatim}..\end{verbatim} block. The delimiter is, AFAIK, user- supplied and doesn't have to be |, although you see that mostly. It works like this: \verb|......| Where the ... denote the verbatim stuff. I could also be \verb!some verbatim text! etc.
-- Sune.
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