In an effort to avoid actual writing this afternoon, I decided to add
some enhancements to the LaTeX syntax bundle.
Here's what I've done:
\textbf{foobar} -> highlights with textbf as the usual
maroonish/purplish command color but foobar is bolded in black
\textit{foobar} -> sames as above but foobar is italicized in black
\texttt{foobar} -> same as above but in a teletype font, ha, no
really, its underlined.
Added highlighting for strings like: `foo' and ``foo'' These are
colored in the same green as math. I find this one really helpful as
it also points out when I've forgotten to use the proper pairing of
quotes. I thought about highlighting "foo" in red to really remind me
that its wrong.
Added $ to the list of smart typing pairs. I don't know about the rest
of you but 99% of the time when I type a $ in LaTeX its to do math.
I also brightened up that maroonish purplish color just slightly since
it seemed a bit dim to me.
Since these changes seem generally useful and non-controversial (except
maybe the color change). I'd be happy to contribute these to the
subversion repository if Alan would grant me an account.
However, since there are already at least three people in the history
file I thought I would post my ideas for further discussion. Any
requests?
Brad
--
Brad Miller, PhD
Assistant Professor
Luther College
http://www.cs.luther.edu/~bmiller
jabber: bnmnetp(a)jabber.org
Greetings all,
Just thinking a little about the bundle-inclusion-principle. There's some pretty strong evidence
that Allan is a fan of Quicksilver, and it brought to mind the idea that the TMer could download
only those bundles (s)he would use. In my case, pretty much exclusively LaTeX.
I would guess that, unlike Quicksilver plugins (?), the extra bundles don't have an effect on
performance per se, but there is a certain pleasure in being parsimonious. ;)
D. Wooten
>> I'd also like to see a popup displaying the various auto-completion
>> options instead of the ESC-cycle solution.
>
> I've added it as a request.
>
Oooh, I've had wet dreams about a popup instead of the current
behaviour. A slight exaggeration, but count this as my +1.
// Emil Eriksson
Some basic things I couldn't figure out:
-Is it possible to assign key shortcuts to "Syntax Highlight As" menu
for different languages. Right now I launch TextMate & use it for
writing quick scripts in the default New Document window which has no
syntax highlighting and it is a pain to go to the menu and select the
language.
-Going with the previous point, can we set the default Syntax Highlight
language for the New Document.
-What's up with the Command Output Window. It has a huge empty White
block on top & dragging the resize bar brings an empty grey block at
the bottom. Unless I am missing something, it sure can use some
redesign & have features like multiple buffers for each
script/selection run but in an elegant configurable way and/or optional
output appending in the same window with a divider etc.
Hi,
it seems to me, that the project drawer does not allow automatic or
manuel refreshment. This is quite a drawback to my mind.
I think it would be great to have a manual refresh-button/command. It
would be even greater to have some kind of automatic refresh every x
seconds/minutes.
Regards.
Christian
Anyone got a bundle for python that works better? The built in one uses
bizarre colors, the folding support doesn't work properly (and, less
importantly, the nifty automatic quote closing doesn't handle """ and
''' quoted strings).
I looked at the wiki, but didn't see anything for python. Any hints on
improving python support would be appreciated.
Regards,
-- Russell
I got curious. Here's no-frills (and no-warranty) ctags lookup suitable
for use with the TM command editor. Select the identifier you're
looking for and run this command to find it. Tested with the output
from the ancient ctags command installed with Mac OS X. It doesn't
support any 'ex' commands except pattern matching. It probably does not
work with the extended ctags format, but it would be trivial to make
the necessary modifications.
There is one problem, however: either my URI syntax is wrong or
TextMate's 'txmt://' handler doesn't seem to be handling the 'line'
parameter.
It would be nice to be able to access this command from the contextual
menu.
ruby <<END
search_string = ENV['TM_SELECTED_TEXT']
exit if search_string == ""
# find the tags file in the folder containing the active file
tagfile_path = File.dirname(ENV['TM_FILEPATH']) + "/tags"
tags = File.open(tagfile_path, "r").read
tagarray = tags.scan(
/(#{search_string})\t(.*?)\t\\/\\^(.*)\\\$\\/\n/ )
linearray = tagarray.collect do |t|
puts t.join("\t")
identifier = t[2]
path = t[1]
sourcefile = File.open(path, "r")
while( sourcefile.gets )
break if \$_ =~ Regexp.new(Regexp.escape(identifier))
end
sourcefile.lineno
end
tagarray.each_with_index do |t, index|
puts "#{t[1]}:#{linearray[index]} #{\$_}"
command = %Q{open
txmt://open?url=file://#{File.expand_path(t[1])}&line=#{linearray
[index]}}
puts command
system(command)
end
END
Hello
ATM, in the find & replace dialogs (both for the signle file and
project-wide), there are single line areas to type the text, even tho
you can paste multiple lines there, its difficult to scroll through
them. I think it'd be really good to have a box with a few lines (i.e
assume the multi-line capability)
Regards
Duarte Carrilho da Graça
>> it seems to me, that the project drawer does not allow automatic or
>> manuel refreshment. [...]
> It refreshes if you deactivate and activate TextMate. A gesture I think
> I read somewhere that users have come to expect from many programs.
Alright, I missed that feature :-)
But anyway, I still think, that a preference for automatic refreshs
would be a nice-to-have feature. And since the auto-refresh capablity
is already there, it shouldn't be too difficult to do.
regards,
christian
I have been writing a little app that lists text files. When I double
click the NSTableView containing the file name I want it to open in
TextMate, place the caret on a specific line and scroll down to that line,
just like for example xcode does when double clicking in the error list.
Is there some way to accomplish this (preferably from Cocoa)? I don`t have
any problems opening the file in TextMate. Its the caret positioning that
is getting to me.
Joachim