Hi,
To make it easier to visually parse blocks, I am trying to write a
pattern that matches on 'even tabs' and give them a light gray
background.
I tried something like
match= "^(?=\\t)\\t";
but that doesn't seem to work. Is look ahead not possible in pattern
matches?
Gerd
Hi,
I have just signed up with this list.
Up until recently I have been using emacs with PHP-model.el for all
my PHP coding.
So far I have been impressed with Textmate however there is one
feature I can't find.
In emacs w/ PHP-mode I can tidy a php script very easily by just
pressing TAB on each of the lines. Even if I am in the middle of a
word, pressing TAB just positions it correctly in relation to the
line above. Tab does not break up a word, and pressing tab repeatedly
does not move it further. Just enough to give nice consistent
indentation.
I have been trying to do this in other editors but so far been unable.
Can Textmate do this ?
I can record a screen capture to illustrate if this doesn't make sense.
William
Hi,
If I save a project then move it around the disk and open it again,
it's unable to find its folders. My impression is that it's because the
references are being saved as relative paths.
Is this somehow intentional or a bug?
Is it just me or tab switching is really slow on b17? Switching either
by clicking or using keyboard shortcuts is taking up to 2s here.
If it's of any help: I'm working on a rails project (so, mainly small
ruby files), less than 6 tabs open generally, and using the pastels on
dark theme. There's plenty of free RAM, and I'm on Panther.
I've been putting together some macros for common refactoring tasks in
Actionscript, like extracting statements to a new function, importing a
new class, adding class variables etc. While this is helpful, I'd like
to write something more robust. I'm considering writing a set of
refactoring scripts in Ruby. Does anyone have any good resources for
where I can start researching this? I'm thinking about looking into
Smalltalk. Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Yo,
I was hacking my DarwinPorts installation earlier today and
experienced something interesting. This is obviously not a
DarwinPorts specific problem but here is how to reproduce it: open
the '/opt/local/bin/port' file (this is a Tcl script) and then simply
try to scroll down and notice how it brings TextMate to its knees.
Allan, if you don't have DarwinPorts installed, here are some more
details. The 'port' command file starts with this:
#!/bin/sh
#\
exec /usr/bin/tclsh "$0" "$@"
TextMate obviously picks the 'Unix shell' language module to perform
the syntax coloring, based on the shebang line, and I guess that this
is probably what causes the problem. I'm really not exactly sure
*why* this happens with the Unix Shell bundle, I have also tried to
display this Tcl script using other syntaxes, Ruby, Perl, etc, and
none of them causes any problem.
So the problem is twofold:
- this happens because TextMate thinks it's a shell script, which the
shebang obviously points at. I wonder if TextMate could be expanded
so it could "see" the exec trick to make a correct decision.
- this happens because something in the Unix Shell bundle REALLY does
not like what it sees in the Tcl script :)
In short, I'm not really sure where the bug is, if there is one ;)
--
Luc Heinrich - lucsky(a)mac.com - http://www.honk-honk.com
I'm new to Textmate, and like what I see so far. Three things off the
bat are frustrating that are really keeping me from using it full
time. If I'm missing some simple fixes to any of these, please forgive:
1) The undo behavior. I read an earlier digest that standard OS
"chunk" undos were planned, but I don't see this pref anywhere. Is
there a plist command that will turn on chunk undos, and if not, will
this feature be coming soon? Having to hit cmnd-z 34 times in a row
is tiresome...
2) While I can pick the language of a file independent of the
filename, some command behaviors appears to be tied to the filename.
For example, I have foo.php which is mostly straight html code, but
since the filename is .php, unComment give me php comments, not html.
Shouldn't it be possible to have the commands tied to the language
choice?
3) Slowness. I've read a variety of posts on the subject, and it
seems TextMate is buggy (or coded in a non-efficient manner) when
dealing with multiple open files and across a network. The slowdowns
I experiencing when switching tabs or switching to/from the
application itself grow slower the longer I have a set of files
open-- this problem really needs to be addressed.
Thanks,
Steve
Hi Folks,
coming from jEdit I really miss CodeBrowser. So this afternoon I
cobbled together a quick hack to recreate some of it's functionality
for TextMate.
The result is TmCodeBrowser:
http://www.cocoabits.com/TmCodeBrowser/
Sorry, Tiger only (saved hours on programming).
Feedback welcome!
Gerd
Hi,
I've been trying to bind a different key to the
"Next File Tab" command. As a complete Mac newbie,
I suspect I'm missing some important principle or
technique for identifying bindable commands.
I've tried "nextFileTab:", "NextFileTab:",
"nextFileTab", "NextFileTab", "Next File Tab"
etc in the keybindings file without success.
Can someone enlighten me on the right way to
map a command menu name to a bindable name?
Thanks in advance,
Stu
Since I installed the latest beta, my ruby output is showing up in a
new window titled "Ruby TextMate Runtime". By and large, it's better
than the command output, except that it appears to be using HTML to
render it, so when I'm writing debugging output of XML processing I
can't see most of what's been processed.
For example, the Ruby command:
puts "<foobar>Hey!</foobar>"
is showing up in the window as:
TM-Ruby v0.2 running Ruby v1.8.2.
>>> /Users/gkistner/Desktop/tmp.rb
Hey!
How can I get TextMate not to use the HTML window, or escape my
output to that window?