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!
Has anyone been experiencing problems with the new SQL bundle,
specifically using the Database Browser?
This is how it's configured:
Title: test_connection
Server: MYSQL
Username: (hidden)
Hostname: localhost
Port: 3306
Database: test_db
When I click on a table in the DB Browser, I'm prompted for my
password each time. How come Textmate/SQLBundle is not using the
keychain? Am I not configuring my connection correctly?
-James
Just got TextMate build 1405 and I am getting the following error
message when I try and SQL Execute the current line/selection.
/bin/bash: line 1: database_choice: command not found
The new database browser works fine - nice addition indeed!
Anyone got any ideas what I'm missing here?
Thanks
Jez
I have a saved project. Inside my project directory in my HD are numerous
files and folder like so:
Project/image.gif
Project/layout/
Project/index.php
etc etc
There's 1 folder inside Project/ that I do not want to be included in my
text mate project because this folder contains about 600 folders with
thousands images inside. When it's included in my project TextMate takes
ages to open it. So I delete the folder reference from my project within
textmate, it goes away, great.
The problem is, even after a save the next time I open the saved project it
automatically gets added back into my propject, I don't want it to and thus
TextMate takes ages opening again.
What can I do?
--
View this message in context: http://www.nabble.com/Project-keeps-re-adding-a-folder-reference-tf4109589.…
Sent from the textmate users mailing list archive at Nabble.com.
The twiddle command (cntrl-T or Text:Convert:Transpose) is most often
used with no selection or with two letters selected to reverse the
order of two characters either side of an insertion point.
If a bunch of text is selected, twiddle returns the reverse of the
char string.
I wonder if it might not be more functional, if words are selected,
to return the words reversed, but preserving letter order? i.e.,
"validity and" -> "and validity"
rather than the current "dna ytidilav"
Does anybody get value from the current multi-char reverse string
behaviour?
cheers,
tim
I sometimes use Textmate to view readonly files. I'll never want to
change the files, just view, navigate, fold, etc. Is there a way to
tell Textmate that the files are read-only, so that Textmate prevents
me from accidentally modifying the edit buffer? Just remembering to
click "Don't save" when I exit Textmate isn't really what I want.
-- Pete
Is there a "right way" to allow for SVN log templates? Basically I'd
like to be able to easily populate the comments section of the
CommitWindow with a template (or snippet, or...).
The best I've found so far is adding:
@commit_args.gsub!("-m ''", '')
to /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb
Which causes the svn's client behavior to kick in and spawn EDITOR
(mate -w) to write comments. Is this as good as it gets?
Thanks,
Mat
I use to open some links (unix links) with mate in the Terminal. It
seems to me that TM makes a mesh with them or not have a clear
criteria with the name/location since the name that appears on the
window title is the name of the link but the location where it refers
to is the real file.
IMHO it should be better to have the real file location in both cases.
Hi everyone :)
Since some months I have had error messages when trying to update my
installed bundles with GetBundle's "Update Installed Bundles" command.
2 different error messages are returned (randomly one or the other,
os so it seems to me) :
1 -> [Target path does not exist]
2 -> [REPORT request failed on '/svn/Bundles/!svn/vcc/default']
Still, after displaying one or the other message, GetBundle tells me
that my bundles were updated an that I can use them...
If I remember well, it all started when I tried to install a bundle
(but don't remember which) and had some error messages during install.
It seems that some people encountered this kind of problem already,
but I couldn't find appropriate solution in this mailing-list archives.
Any help would be appreciated :)
Thanks,
Luc.
Hi,
I have a tiny question:
How can I invoke an inline menu by using 'tm_dialog -u' from a
tmCommand written in bash?
I'd like to popup an inline menu à la Ruby
require File.join(ENV["TM_SUPPORT_PATH"], "lib/ui.rb")
words = STDIN.read().split("\n")
print words[TextMate::UI.menu(words)]
but using 'tm_dialog -u' command.
OK. I can embed Ruby-code in my Bash script, but it should be
possible to use only
tm_dialog -p "{???}" -u
I have no problems with for instance:
PLIST=$(tm_dialog -mc -p '{title="Hallo";}' RequestString)
I tried to write a old-stylish plist using menuItems, title=, etc.,
but up to now I couldn't find a solution.
Thanks in advance for any hint,
Hans
On Jul 19, 2007, at 6:52:07 PM, Cliff Pruitt wrote:
> Yeah I know what you're saying & of course Emacs & vim are "text
> editors". :-) But honestly how many "editors" of any kind have a
> read-only mode? (This is where someone emails me a list of like
> 3,000 read-only editors & I look like a jerk... happens every time.)
One feature of BBEdit that I've missed since moving to TextMate a
couple years ago is the ability to open a file Read Only, or even to
mark an already-open file as Read Only. It's not something I would
call a key feature that all text editors need to have, but it is a
great way to protect a file from inadvertent changes (aka protect me
from myself).
When working on one source file I very often have another file open
from a completely different project, for reference or for copying
code from. More than once I've modified the wrong file and
accidentally saved my changes, then had to use version control to
revert back. It would be much easier if there was a fast and simple
way to open the reference file Read Only.
Don't know about the other 2,999 editors that off that feature, tho,
so I'll let others chime in about that ;)
- Dave
This ought to be easy! :)
I want to be able to use "Wrap Word in Link" (currently in the
Hyperlink Helper bundle) in a php file.
With no modifications to the bundle, evoking the activation: <Key
Equivalent> has no visible effect at all.
Adding "source.php" to the Scope Selector List of the bundle, then
trying evoke the action results in
(this language is not supported, see … for more info)
being inserted in the document.
Umm?
First, how does anyone suggest I get this to work?
Second, "see <ellipsis> for more info" is hardly helpful !!
Thanks,
eo
Dear friends,
several people on this list have brought up the issue of non-sticking
passwords in the new MySql bundle. There were suggestions to
reinstall, revert bundles to original state etc –– I have done that,
but I am still prompted for password with every query and with every
change of table in the database browser.
What is the solution for this problem?
Secondly, I mentioned before that the mysql bundle is not happily
working with non-latin unicode -- queries containing, for instance,
Cyrilic or Greek are not executed as they should (they return no
values), and tables containing non-latin utf8 text display question
marks instead of text.
I am kindly asking for any tips -- the mysql bundle has become
unusable for me, and I need it very badly.
All best,
Tench
Hi There,
This seems like a FAQ, but I haven't been able to find the answer
after some looking. Textmate doesn't have a "match entire word" check
box in the find dialog, like most text editors. Presumably, we're
supposed to use regular expressions to achieve the same effect. Most
times, the word is a variable name. So for my variable x in C++, I
want to find all uses including:
x[i]
x->foo
x.bar
I've been trying to bracket the variable with the "non word
character", so I search for the regular expression \Wx\W
This excludes xbar, and foox. However, this isn't quite the same as
matching just the word, as the find dialog also selects the previous
and next character, matching the \W. I can't use it in a replace, for
example. Is there some cleaner way of doing this?
Thanks,
Craig Schmidt
I've been using Textmate with Transmit with no problems for months, now today
the bundle doesn't seem to work. The only thing I think of is that i did
update my textmate yesterday.
now when I use the bundle, i get the tooltip that says "(filename) sent to
Transmit" but nothing happens. I tried docksend by dragging the file from
finder to the transmit icon and it did work. Its just the bundle in Textmate
that doesn't seem to be working with Transmit. I've reset my bundles, even
re-installed transmit.
I am using textmate 1.5.6 and transmit 3.5.6 on OSX 10.3.9
thank you
--
View this message in context: http://www.nabble.com/textmate-transmit-bundle-not-working-tf4070702.html#a…
Sent from the textmate users mailing list archive at Nabble.com.
Hi everyone :)
Since some months I have had error messages when trying to update my
installed bundles with GetBundle's "Update Installed Bundles" command.
2 different error messages are returned (randomly one or the other,
os so it seems to me) :
1 -> [Target path does not exist]
2 -> [REPORT request failed on '/svn/Bundles/!svn/vcc/default']
Still, after displaying one or the other message, GetBundle tells me
that my bundles were updated an that I can use them...
If I remember well, it all started when I tried to install a bundle
(but don't remember which) and had some error messages during install.
It seems that some people encountered this kind of problem already,
but I couldn't find appropriate solution in this mailing-list archives.
Any help would be appreciated :)
Thanks,
Luc.
Hi List,
Everytime I click out of textmate - like into firefox say - and then
click back into textmate, it freezes for 30 seconds and I get the
loading spinny thing. I monitor on top and it reports:
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
377 TextMate 0.0% 1:32.30 3 94 247 128M
16.9M 152M 485M
And then when I click into textmate:
377 TextMate 99.0% 1:46.34 3 97 253 130M+
16.9M 154M+ 487M+
I've defragged and run the OnyX maintence scripts, restarted, trashed
textmate and reinstalled, and rebooted and this still happens. Ideas?
Avi Flombaum
avi(a)designerpages.com
Hi,
The latest Textmate helpfully highlights SQL in comments, this is
great apart from with Joomla/Mambo code which actually uses a hash in
the table name (this gets replaced before it gets as far as mysql) -
this hash is recognised as a comment, so the end of the string is
ignored and the rest of your file is treated as a comment.
The tables names are referred to as #__mytable. I'm sure if this
isn't the best solution but a quick fix is to open
/Applications/Textmate.app/Contents/SharedSupport/Bundles/
SQL.tmbundle/Syntaxes/SQL.plist
in Property Editor and navigate to
/Root/repository/comments/patterns/1/match
and change the regex from
(#)?.*$\n?
to
(#)[^_][^_]?.*$\n?
Any better solutions gratefully accepted.
Thanks
jeb
Hi Joachim,
Love your Objective-C bundle contributions, use them all the time!
To facilitate a more compact folding I actually prefer a different
way of formatting my methods than what "Completion: Partial Method
Signature" produces. May I suggest to replace
out = out.chomp.strip + "\n\{$0\n#{rv}\}"
with something similar to this (sorry, no Ruby coder):
if ENV['TM_C_METHODBODY']
out = out.chomp.strip + eval(ENV['TM_C_METHODBODY'])
else
out = out.chomp.strip + "\n\{$0\n#{rv}\}"
end
so I can adjust it to my preference?
Thanks
Gerd