I can't figure this out...
Here's some text:
(this is a parenthesis in quotes "(")
If I put the caret before or after the final quotation and choose
Select>Enclosing Brackets, TextMate selects the second opening
parenthesis and the closing parenthesis. Also, no text is selected
with the caret anywhere else.
How can I teach TextMate that parentheses between quotation marks
shouldn't be considered for a match? I want something like "Ignore
parentheses that are in strings" but i can't see how to do that...
Thanks
--
(<http://newlisper.blogspot.com/>)
Hello,
I am contemplating to buy TextMate, it is by far the most competent
and well designed editor I've seen for OS X - and I've been looking
for a replacement for Emacs for the last couple of years* - but
before really hitting the credit card I would like to find the answer
to a few questions that I have not found in the documentation:
1. A very handy feature of Emacs is the just-one-space command; that
is, all spaces and tabs around the point is reduced into one space.
E.g. (the bar sign is the cursor); "x | x" becomes "x |x". Is there
such a command within TextMate? If not, any suggestions for how to
create one? I did an experiment, I created a new command and had it
running perl with a regexp on the line. The problem is that I want to
have it to be run around the current position, not all spaces on the
line. Is there a way of sending the current cursor position to the
command? I.e. "x x | x" shall become "x x |x", not "x x |x"
or something like it.
2. Indent region: Something that I frequently uses is the fill-
paragraph and friends of Emacs; TextMate's Reformat (^Q) isn't as
advanced and is not language/bundle aware. i was thinking of porting
the Lisp code into e.g. perl and create a new command for it, but
before I spend any time on it I would like to know if there is
something similar already implemented that I've missed? (I usully
write HTML, Shell Scripts and Perl in TextMate but will migrate my
LaTeX files and other programming languages to TextMate as time passes.)
3. When I write HTML I would like to have e.g. lists looks like this:
<ol>
<li>AAA Lorem ipsum lorem ipsum lorem ipsum lorem ipsum
BBB lorem ipsum lorem ipsum lorem ipsum lorem ipsum
CCC lorem ipsum lorem ipsum lorem ipsum</li>
</ol>
But, I do not want it to add whitespace before the BBB and CCC, I
would like it to wrap lines visually but the file should still look
like this:
<ol>
<li>AAA Lorem ipsum lorem ipsum lorem ipsum lorem ipsum BBB lorem
ipsum lorem ipsum lorem ipsum lorem ipsum CCC lorem ipsum lorem ipsum
lorem ipsum</li>
</ol>
Is this even possible? The visual presentation and the physical file
would then differ and I don't think that makes sense for a /text/
editor. (This is not available in Emacs AFAIK but it is something
that I miss.)
Thank you.
/Jonas
-----
*) I'm fed up with the lack of proper Unicode support, no native Aqua
build that isn't a hack and the reliance on X11 where cut-and-paste
between X11 and any other OS X application s*cks. Don't get me wrong,
I lived inside Emacs for over ten years, I not only read
alt.religion.emacs - I also posted in it! When I say that TextMate is
a competent editor, then it is far from an exaggeration. But I don't
say that it is *the* editor. Not quite yet. :-)
the subversion status window is never the right size.
It's either too short and causes a scrollbar, or too long and wastes
space.
I request a way to resize the window with javascript.
And a way to make the body background transparent.
That way i can set the window size myself or set a default size the
height of the window.
Transparent would let you click through, obviously.
That would allow for all kinds of crazy useful stuff.
thomas Aylott—subtleGradient
Fortran and Comments
Hi,
while it wasn't a major problem to make some additions to the very
rudimentary Fortran bundle (I added some snippets and a compiler
command) I am struggling to get the "Continue Line Comment" from the
Source Package to behave correctly.
While the scope seems to be identified correctly and the "Comment
Line" commando behaves as expected, the "Continue Line Comment"
doesn't add a proper comment symbol (in this case preferably *), it
jumps to the next line but only adds a space instead of *. I have
tried to find any differences to other bundles where the commadn
works, but I can't find the missing piece.
I have already added the line
asterisk *
to the "Continue Line Comment ". But this didn't help either.
Any ideas where I have to look for the missing piece so that I get
the proper symbol instead of a space?
Thanks,
Carsten
Hello,
When I drag the mouse to select a function so I can move it, the
blank line at the end (between functions) won't select.
If I drag further the top line of the next function and the blank
line are then highlighted.
This is very annoying.
Any words of advice?
Please don't make me go back to BBEdit.
Thanks,
ml
Hello,
I just installed 1.5.2 (unfortunately deleting 1.5 on the way) just
to notice that my favorite TAB triggers for Rails no longer work!
rea gives me Ruby's reverse_each, ra gives... nothing, etc.
Any hints (or older Textmate ;-) available
TNX in advance.
This just started happening -- I *think* since the latest update
(1203) but I'm not 100% sure about that.
Almost every time I switch from some other app to TM, the cursor goes
beach ball on me for about 10 or 20 seconds before giving TM the
focus. It really sucks for web page development since I'm constantly
flipping between the browser and TM.
One thing that may be a factor is that my site is located on an AFP
share on another box on my network as a mounted volume. However, I
can edit using skedit with no trouble and no delay.
Any ideas?
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
I'd like to submit a newLISP bundle to the central mainframe... Are
there instructions anywhere on how to do it? (I downloaded subversion
so that might be a necessary first step.)
--
(<http://newlisper.blogspot.com/>)
Hi!
This issue has been bugging for quite some builds now. When using a
newer TextMate build, the current 1202 e.g., I can't get the test
cases of my Rails project to run from inside TextMate. This is what I
get when I try Command-R:
---- snip ----
RubyMate r4532 running Ruby v1.8.4 (/opt/local/bin/ruby)
>>> content_controller_test.rb
that’s nice
this is my important stuff
<strong>bad!</strong>
I am <at> the exit!
NameError: uninitialized constant Test
method const_missing
in dependencies.rb at line 123
method const_missing
in dependencies.rb at line 133
method load_plugin
in init.rb at line 1
method load_plugin
in initializer.rb at line 348
method silence_warnings
in reporting.rb at line 11
method load_plugin
in initializer.rb at line 348
method load_plugins
in initializer.rb at line 158
method load_plugins
in initializer.rb at line 158
method process
in initializer.rb at line 102
method run
in initializer.rb at line 42
at top level
in environment.rb at line 10
at top level
in test_helper.rb at line 2
at top level
in content_controller_test.rb at line 1
Program exited.
---- snap ----
Obviously it isn't able to load the test classes correctly. My Ruby
installation is in /opt/local, installed with DarwinPorts, and all
it's libraries are installed there as well. I had a look at the
RubyMate code in the bundle, but on first look it doesn't appear to
be broken somehow. This stuff worked fine in TextMate build 1112 with
RubyMate r3391, though I realized a lot has changed in RubyMate since
then ;)
Any ideas? Or anyone else having similar issues?
Cheers, Mathias
--
http://javaddicts.net/blog
"If programmers got paid to remove code from sofware instead of
writing new code, software would be a whole lot better." -- Nicholas
Negroponte
Hi,
I'm just in the process of switching from BBedit... TextMate is a
great combination of Mac UI and Unix power :). There are a few
things I've found that could be improved:
i) Having all the commands in bundles can make it quite tricky to
find things. Not sure how to improve this. I almost want an obvious
'search all commands' command.
While browsing the list, I noticed someone else's feature
request for a 'what does this key combo do' feature. I'd like to
second that. And add a request for an 'open a window with a list of
all current key combos' feature.
ii) I'm used to having a shell open. As I move around I might
want to either open files in TextMate from the shell, or do something
in the shell to a file that is open in TextMate. This leads to two
strangenesses:
- If you use the 'mate' command in the shell to open a file,
then the file doesn't get added to the "Open Recent >" menu. I think
it should (perhaps as an option to 'mate', or a preference).
- If I already have a shell open, I want to drag the document
icon in the window title bar to the shell to get the path to the
document (as you can in the finder with folders). Now, I can open a
new shell with in the same directory, and I could make a command to
copy the path to the current file. I'd kinda like the drag-and-drop
OUT of textmate option though. (N.B. you can do this with icons in a
project. You just can't do it with an individual file's icon.)
iii) While looking for a solution to the 'drag out of textmate'
problem, I searched the list and found that I could drag out of a
project. But I already had the file I wanted to edit open. I didn't
have a shell in that dir (so I couldn't 'mate .') and I didn't have a
Finder window in that dir any more. I couldn't find a way to 'make a
new project with a currently open file'. I'm sure I could make a new
command to do this pretty quickly, but it seems like something that
should already be there, somewhere.
Anyway, thanks for a great product. :)
Will :-}