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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My subject line pretty much says it all. I would like to implement a
tab command that will delete the current line in a document. The
best that I have been able to do so far is to remove the text, but
not the line. I'd imagine that I could do it by iterating through
the document and deleting the line in some complicated script, but
I'm hoping for a simple solution. Is there a simple solution? Thanks.
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFErf4M4oDM7Rgs0h0RAkjqAKCuq3kJUPlAF+u864DnZRidAaKk0gCfY2dK
q+LWd28wNst5yWCDjfR60HY=
=xuoQ
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I just implemented two new functions: cleanup and remove.
Cleanup moves all of the completed tasks (context = DONE) to the
bottom of a selected task list/project.
Remove removes all of the completed tasks in a selected task list/
project.
Alaskamike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEuw+d4oDM7Rgs0h0RAvlBAJoCOi4ocGRwVG17zj3tTNYKvmSHRACgsv82
mJvfD1RdmUbJeiVyZJOOQSQ=
=3IKE
-----END PGP SIGNATURE-----
Anyone know what Application Allan is using for the screencasts? I'm
on short notice here and need to make several for a little "teaser".
Can't seem to find one I actually like.
Regards,
Eric
here are my two cents on the subject.
I'm plagued with a marked attention deficit :P, so when I found out
about WriteRoom I was sold on the idea of full-screen distractionless
editing.
now, I'm not too fond of feature requests, but I'd like allan to take
a look at WriteRoom and think about offering similar functionality
within TextMate (snippets + fullscreen = wow!) — megazoomer just
doesn't cut it, the whole text is jammed over the left border, too
ugly to be true!
on the other hand, since I first used a mac I expect the maximization
button to act like it does in Finder, i.e. increase window height
until the whole content is shown. that was the behaviour I got on
BeOS too (I was an eager BeOS user back in the day). I guess offering
those two modes (full screen and vertical window zooming) would be
very nice.
ciao,
domenico
Sorry about the subject.
The thing is, I type $('') quite a lot, so much that even a tab-
trigger isn't ideal. I'd like to have a key-trigger of $ to just
activate the thing. The dealbreaker though is that I also use $$
sometimes, and of course an american might use $ for some other reasons.
So I wonder, can you have some "smart" entering here, like the
parentheses in a way.
The behaviour I'd like is that if I just type $, it will expand to $
('$1')$0 (shorthand snippet syntax), but if I hit delete directly
after typing $, it will revert the thing to a simple $-character.
Hope I'm making myself clear :)
btw, Martin Ström, this could be integrated into your new prototype/
scriptaculous bundle ˆ_ˆ
Andreas
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have fixed the script for GeekTool export, so it works now.
Running the command (ctrl-shift-G) creates a file callled
"todoList.txt" in your GTD folder (whatever it is called). The all
you need to do in GeekTool is set up a shell command with:
cat /Users/foo/pathToGTD/todoList.txt
If you try it, please let me know how it works!
Alaskamike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEuYyU4oDM7Rgs0h0RApQ9AJ9fhuGre1C1j5o2/bZiJXUjDXiFpACdFnxH
VBoQW0dECxmUix5YuVxmazI=
=/GZa
-----END PGP SIGNATURE-----
I have one request for the wonderful blogging bundle. I have come to
rely on it 100%, and today I ran into the following problem. I needed
to update a post that was not that long ago, but given the amount of
activity on my blog does not show up in the list of 20 newest posts
that "Fetch post" shows me. Is there a way to get "Fetch post" to
"move to the previous 20 posts" and so on?
Or perhaps a way to search for a post to fetch by name?
Haris
Hi all,
Previous conversations on related topics to this don't seem to answer
the question (correct me if I'm wrong!), so:
Can I turn the input to a command script into a shell variable, i.e.
is there a UNIXy way of reading stdin into a variable?
To be more concrete, I have a simple command for looking up the
current word in the R help files (which are in HTML) and displaying
the page in TM's browser. The basic command is
#! /usr/bin/ruby
text = STDIN.read
file = `find /Library/Frameworks/R.framework/Versions/Current/Resources/library
-name #{text}.html -print`
html = `cat #{file}`
print html
This works, but seems like an inelegant solution, and for more complex
tasks it would be useful to know how to avoid needing ruby and make
this something like
var=[something]
cat `find /Library/Frameworks/R.framework/Versions/Current/Resources/library
-name $var.html -print`
TIA!
Jon
I've just added the following command to my Sweave bundle for using
the command line interface to R rather than the GUI:
M=${TM_SWEAVE_WD:=${TM_DIRECTORY}}
echo -e "setwd('$M')\nSweave('$TM_FILEPATH')" |
"$TM_BUNDLE_SUPPORT/../../R.tmbundle/Support/tmR.rb"
Note this assumes both R and Sweave bundles are located in the same
directory. The /../../ is to back up from the Sweave bundle Support
directory and go into the R bundle Support directory.
Command output should be set to "Show as HTML"
I have only tested this on example-1.Snw
Or here's a simpler, if less pretty, way of doing that taken from the
Sweave manual:
echo "library(\"utils\"); Sweave(\"$TM_FILEPATH\")" | R --no-save --
no-restore
I prefer all the nice HTML you get from using tmR.rb though.
Alan et all,
Don't know how practical, but I thought I would put it out there -
I do a lot of converting of Words docs to html. JT's tidy MS Word
command is a godsend, but there are things that I need to search and
replace for -- things like empty p tags, apostrophies, quotes,
emdshes, etc
I never have (yet) qotten my head around grep/stdn etc, so I end up
using search/replace.
My question is whether it would be feasible to convert search/replace
macros to their command equivalents, which I could then just append on
to msword tidy?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
I have been trying to create a snippet that can transform the text at one of the tab stops but am having difficulty, I have consulted the hlp system and it describes how to transform a tab stop when using mirror typing, but I don?t want to have a mirror, I simply want to force one of the tab stops to be uppercase, no matter what character I type, almost as though I switched caps lock on when entering that tab stop and off again after leaving it.
Does anyone know if this is possible? And if so how?
Many thanks
Chris
i would like to be able to perform a simple browser-like back/forward
through the files that i'm viewing/editing. since my normal usage is
to be working with many files simultaneously and i'm using the
project drawer to jump around, i'm always losing track of where i
was. it would be a HUGE time saver to have a "back" command that
could cycle through the last few files that i've loaded into the editor.
note that i've tried using the prev/next file tab commands, but that
just doesn't cut it as the tab placement is completely random based
on the way i work and there are usually a couple dozen of them.
does anything like this exist?
thx.
-scott