Not a biggie, but thought someone might want to know... for next time
they're tinkering (Ciarán? ;-) ) with the PHP bundle.
Thought I'd try fiddling with my copy of SimpleTest to put txmt style
links on the test reports, just to make things a bit easier...
Thought I'd just grab what i needed from the $message variable which
shows up something like this:
[/Library/WebServer/Documents/pcs/tests/panel_test.php line 56]
Tried putting
$linkRef = preg_replace( array('/^.*\[/','/\].*$/','/ line /'),
array('txmt://open?url=file://','', '&line='), $message);
which works as far as the links go, but throws a distinct wobbly in
terms of scope within TM after that delimited open square bracket \[.
If I didn't happen to be searching for the end square bracket as
well, then the rest of the code would be highlighted as a pattern...
Hope that's as clear as mud.
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
A couple of recent posts asking perfectly reasonable questions about
TextMate (can you open documents R/O, can you split the screen) have
attracted answers in the spirit of "why would you want to do that?"
or "here's a command that will erase your hard drive luser". The
latter a particularly stupid and frankly unexpected contribution from
Thomas.
I know TM has a lot of fans in the Ruby community. I wonder if we're
seeing the same attitude that hangs around Ruby like a bad smell
("you can't write a DSL in any language apart from Ruby", "wow!
That's just not possible in other languages") applied to TextMate.
Assuming there's at least some overlap between the two groups of
fanatics I'll attempt to address both at the same time: please wait
until you've had experience of other languages / editors before you
start condemning everthing not-Ruby or not-Textmate.
Ruby and TextMate are both excellent tools; both have limitations and
misfeatures as all non trivial software does. Neither will continue
to improve if their fans believe them already perfect.
"And what should they know of England who only England know?"
Rudyard Kipling, The
English Flag
--
Andy Armstrong, hexten.net
Hi,
I'm trying to use iconv to convert a Shift-JIS document to UTF-8.
It's successful in Terminal, but not so in TextMate.
The command I use in Terminal is:
iconv -f shift-jis -t utf-8 text1.txt>text2.txt
This converts the file successfully.
In TextMate, I set up a command, using:
iconv -f shift-jis -t utf-8 "$TM_FILEPATH"
in Command(s) field.
I set Save: Nothing
Input: None
Output: Replace Document
Activation and Scope Selector are unset.
After using this command, I see a diamond-like character at the end
of each line.
Any help would be appreciated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hello friends,
TextMate desperately needs some updated T-shirts, but behind every great
T shirt is a great T shirt idea. So, even if you have no artistic
talent whatsoever, you can think up ideas for slogans and designs. And
even slogans that don't make it onto shirts could probably be useful for
something.
Anyway, once some good ideas have been offered up, it will be possible
to make some design mockups based on those. I'm happy to spend a bit of
time sometime doing some very basic designery stuff, though I'm hardly
an expert, and other more qualified designers would of course be welcome
to draw up shirts too.
But first let's see if as a group we can't come up with some killer slogans.
Anyone who contributes an idea/slogan, or a design, which ends up being
printed on the shirts gets one free (says Allan; I'm a poor student and
can't afford such things ;)
To start off, I was thinking it could be something along the lines of
"check and mate".
-Jacob Rus
Hi,
As I've watched some of Allan's screencasts, I noticed he often
switches between the bundle editor and a document window in order to
try out changes to snippets, commands, etc. It looks like he's using
the keyboard to switch back and forth. I know I can switch between
windows using Command-` , but any changes I've made in the bundle
editor's text field don't seem to take effect when I switch windows.
For example, I start editing a snippet. I add or remove some text in
the snippet. Then press Command-` to switch to my document window. I
trigger the snippet (using tab triggers in my recent experiments), but
I get the old contents of the snippet, without the changes I just typed.
If I click elsewhere in the bundle editor (in the list on the left, in
the scope selector text field, etc.) before switching windows, then
the changes I've made to the snippet take effect when I switch to my
document window.
I've been skimming some of the archives of this list, and I've seen it
mentioned that switching windows is supposed to commit changes to the
text field in the bundle editor. Which means just pressing Command-`
to switch windows should be enough. Am I doing something wrong?
I'm running TextMate build 1405 on Mac OS X 10.4.10 on both Intel and
PowerPC machines.
Thanks,
-Mark
I made a more clever "Transpose Chars" and "Transpose Words" that I
used to use there in Alpha and have passed now to TextMate. The
behaviour is:
Exchange the last (before cursor) chars. But attention: it
exchange the last real chars, ignoring spaces around. This is the
desired behaviour for the typical mistake everybody does. It is for
me annoying to need to go back, put the cursor in the middle of the
swapped chars and press ^T.. How many keystrokes?
"Exchange words" do the same thing, always ignoring the spaces.
If you have several selected words, "Exchange words" interchanges the
first with the last word, leaving the rest untouched. Same thing with
"Exchange chars"
I hope this is what you are looking for.
Binded to ^T and ^-Opt-T and no special scope.

-----
Juan
jfalgueras(a)uma.es
Finally someone on IRC had the password problem so we could
troubleshoot.
It turns out to be a Leopard bug which manifests itself only on Intel
machines <rdar://5352252>.
If you are affected, open KeyChain Access, locate the password stored
for your database, double-click it, and in the “where” field, change
‘qsym’ to ‘mysq’.
I'm not sure if this is a TextMate bug, or something else, but oh is
it very, very irritating. I'm not sure what/why this happened, but
I'm hoping someone here (Allan? or anyone?) might be able to explain it.
I was running TextMate on computer A, editing a file accessed through
an AFP share on computer B. Computer B at some point got put to
sleep (lid of laptop was closed), and when that happened, the file
was in need of saving. A "lost connection with server, disconnect?"
dialog did come up. I woke computer B from sleep, and the dialog
went away by itself. Then I tried to save the buffer. TextMate
conjured a spinning beach ball for a time (1-2 minutes or so), after
which it appeared the file had been saved. No errors were reported,
and the 'needs saving dot' in the red close button, upper left hand
corner, had gone away. Thinking it was in fact saved, I closed the
window, and TextMate did not complain.
Then, when I (immediately after) tried to open the file back up, I
found it to be empty. The file had definitely been saved many times
as it was edited -- the time after the hiccup certainly wasn't the
first.
I lost like 6 hours of work.
Obviously, there seems to have been some IO issue due to the network
connection being interrupted, and/or the remote server going to
sleep. Can someone explain what (the deeper / more specific the
technical detail the better) it is? A likely sequence of events,
consistent with what I described, that would cause this result? Can
it be considered a bug that TextMate doesn't react to this kind of
issue, and a file gets silently truncated on the remote server?
Thanks...
--
Matt Anderson
Stop replying to an existing letter when you actually want to write a
new letter.
It screws up threading and I rely on threading for several things --
in Mail you effectively bury (for the collapsed view) the original
thread when you reply with a changed subject.
One of these days I’ll look into having procmail bounce letters with
an in-reply-to header w/o “Re:” or “(was:” in the subject, cause this
behavior is rather frustrating!