Not sure who maintains the sql syntax bundle, and I would do it myself
if I had time right now, but the syntax highlighting breaks if a
comment that begins with '--' has a forward slash somewhere after that
on the same line. Very nice bundle otherwise.
--
Best regards,
Lang Riley
The Special Items list is awesome. Great example of what can be done
with TextMate, but I've noticed that the HTML Output can become really
slow with larger files. I'm not really sure why it is so slow, is this
a bug?
- Juan Carlos
p.s. my apologies if this has already been discussed.
Hi all
I've written a short ruby script for the purposes of checking regular
expressions within TextMate.
http://dml.homedns.org/rx_helper.rb
It expects to be fed a regular expression on a line of its own,
followed by any number of lines to test against. The RX can be either a
straight match (eg ^([a-z]+):([0-9]+ ) or a substitution (eg,
/old/new/). Cuddling /slashes/ are only required for
/pattern/replacement/ expressions.
If you create the following action in TextMate:
echo "$TM_SELECTED_TEXT" | /path_to_script/rx_helper.rb
with input='selected text' & output='show as tooltip', you can open a
new window, write a regexp, write some test cases for your regexp, then
select-all and see the results in a tooltip whenever you need it (I
have it bound to ctrl-alt-option-X).
I hope someone finds it useful. If you find any bugs / have any
suggestions on how to improve it, please do let me know.
cheers
D
P.S here's some sample input and output:
------------------------------------
IN (TextMate scratch file)
==
(http|https|ftp):\/\/(([-_a-zA-Z1-9]+)\.)+([-_a-zA-Z1-9]{2,3})
http://www.google.comhttps://www.netbank.com.au
ftp://mafia.ru
www.clickstart.com
boozehound
gary sweeney
http://www.amazon.com/http://www.amazon.com/exec/obidos/subst/home/home.html/002-0270779
-6984007
~
OUT (tooltip)
==
(http|https|ftp):\/\/(([-_a-zA-Z1-9]+)\.)+([-_a-zA-Z1-9]{2,3})
Successful Matches:
===================
http://www.google.com : matched expression
match number [1] : http
match number [2] : google.
match number [3] : google
match number [4] : com
https://www.netbank.com.au : matched expression
match number [1] : https
match number [2] : com.
match number [3] : com
match number [4] : au
ftp://mafia.ru : matched expression
match number [1] : ftp
match number [2] : mafia.
match number [3] : mafia
match number [4] : ru
http://www.amazon.com/ : matched expression
match number [1] : http
match number [2] : amazon.
match number [3] : amazon
match number [4] : com
http://www.amazon.com/exec/obidos/subst/home/home.html/002-0270779
-6984007 : matched expression
match number [1] : http
match number [2] : amazon.
match number [3] : amazon
match number [4] : com
Failed Matches:
===============
www.clickstart.com : failed
boozehound : failed
gary sweeney : failed
Would it be possible to have TM center the display vertically according
to the location of a bookmark when the F2 'jump to bookmark
functionality' is invoked? Currently, pressing F2 only affects the
location of the cursor, but not necessarily the orientation of the
document view in TM. For example, if you are fond of using a mouse
scroll wheel as I am to look around (in a quicker fashion than the
arrow keys will allow), then you will find that since your cursor has
not actually moved, subsequently hitting F2 will not change the
orientation of the document thereby effectively negating the functional
purpose of the F2 functionality.
--
Best regards,
Lang Riley
Incremental searching is great. It would be even greater if it allowed
repeats forward and/or backward of the same search. And even greater
still if it allowed regexps. As you might have imagined, I am missing
this from vim.
--
Best regards,
Lang Riley
Hi
now this should start a new thread.
I'm wondering if there's
a) a bug in 'select paragraph' , or
b) plans for a version of it that will select the 'code block' you're
working on
the reason being that (in ruby at least) the selection made bears
little relation to the structure of the code AFAICT. In perl it seems
just to select the current line.
I don't know if this is a bundle- or lower-level thing, but perhaps the
best way for it to work would be for each press of alt-P (or whatever)
to move the selection to the next outmost code folding boundary
eg one press selects the loop you're in, another the method, and
another the entire class.
am i missing something really obvious to Allan as usual, or is this
feature missing?
I know Allan's working on the entire syntax engine so I'll make no
mention of parentheses bouncing or matching :)
D
Hi there!
I'm on a tear....
When I have several non-project windows open, and I drag another
file on TM's icon, the new file window appears as it should; The
previous top window moves, while staying underneath, to just above and
left of the new window.
I didn't find anything related to this on the wiki or the list....
Cheers,
Dameron
Hi folks,
I don't know if this makes much sense, so I'm wondering if anyone else has noticed this problem.
I use Desktop Manager (http://wsmanager.sourceforge.net/) for virtual desktops .. so I have TextMate on its own desktop ... let's say I'm in my 'browser' desktop poking around somehwere (or email, or whatever) sometimes TextMate jumps to the foreground and steals the focus away from the current program I'm looking at (The TextMate window is still stuck in its own desktop, but the pain is that if I'm in the middle of typing something, It will litter my textmate document)
I tried quitting Desktop Manager and just poke around as normal, and I don't *think* it happened any more ... though I haven't really done any long extensive testing.
Is anyone else using these two programs together and having/not-having these problems?
Cheers,
-steve
Just a few posts ago there was some talk about having TextMate do interactive regex testing as part of its features ... I was itching for something similar because I'm coming over from jEdit which has a RegextTester plugin of sorts ...
Anyway .. we came across this:
http://macupdate.com/info.php/id/13271
Might be helpful.
-steve
I just registered TextMate, and I was told that I would receive an
email with my serial number included immediately. Unfortunately, I
haven't received it, and it's been a few hours. I'm just wondering is
there anyone in particular to contact with these issues? I have the
paypal receipt if necessary.
Thanks.
Dan