I'm looking for something to replace Transmit, since TextMate won't
work as one of it's external editors. I need an ftp client that will
upload when TextMate Saves.
(Sorry, Allan I know you made suggestions via IRC, but I closed that
window. I think this topic deserves to be in the list archives
anyway.)
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
Wow, this icon quest is getting really exciting, but ever more
confusing, so I thought a simple poll between the two (???) top
contenders could be of general interest, and a lot less confusing as to
which one anyone is commenting on.
Yeah, I know I'm being a bit of an anorak, but can't help it, and I am
taking my medication daily ;-)
To register your vote, please do a reply with the name of your
preferred icon selected, and if you so wish add your reasons to why you
like it below the quoted text.
Any other comment belongs in a completely new thread. Please try to
keep it on point here. Thank you! ;-)
Icon A by Bartelme.
Icon B by Ethan.
My vote:
Icon A by Bartelme
Reason: I'm not entirely sure why, but I'm guessing it's something to
do with Bartelme's icon following the general "text editor" icon look,
and it is more in line with the 3D feel of the other Apple app icons in
the dock which I think is more appropriate and professional.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Greetings all (from a relatively new BBEdit->TextMate convert)
Is there an easy way to insert a file/directory path into a TextMate window?
I can do it using the slightly ugly applescript hack below, "Insert Finder
Selection", but it'd be nice to drag-then-hit-command-while-dragging or some
such.
Just for fun I've included a couple of Perl commands for reading in a file
"Perl Infile" (it's up to you what you do with it!) and for writing to a
file "Perl Outfile". They try to be a little bit helpful: if you've selected
text in TextMate the commands assume it's a filename and wrap around it,
otherwise CocoaDialog is pulled up and you must select a file. in "Outfile"
you can also select a directory: in this case it prompts for a filename to
write to. See Eric's earlier post about CocoaDialog (http://cocoadialog.sourceforge.net/)
You will need to change the $CD variable used in these scripts if you choose
to install it somewhere other than /Applications .
Regards,
Paul
------------------------------------------------------------------------
Insert Finder Selection:
------------------------------------------------------------------------
Save: Nothing
Command:
osascript<<END
set linefeed to "
"
tell application "Finder"
set x to the selection
if the length of x is 0 then
return ""
end if
set mylist to {}
repeat with i from 1 to the number of items in x
set y to item i of x as alias
set mylist to mylist & (POSIX path of y)
end repeat
end tell
END
Input: None
Output: Insert after selected text
Key Equivalent: command-option-ctrl F
------------------------------------------------------------------------
------------------------------------------------------------------------
Perl Infile
------------------------------------------------------------------------
Save: Nothing
Command:
perl -e '
my $CD="/Applications/CocoaDialog.app/Contents/MacOS/CocoaDialog";
my $TMD=$ENV{'TM_DIRECTORY'};
my $selection=$ENV{'TM_SELECTED_TEXT'};
my $file;
if ($selection){
($file=$selection)=~s/\s+$//; # kill any trailing space
}else{
my $rv=`$CD fileselect --text "Select a file" --no-newline --with-directory "$TMD"`;
chomp($file = $rv);
}
exit unless $file; # user cancelled
print <<HERE
my \$infile = "$file";
open IN , "\$infile" or die "Input error: \$infile\\n\$!";
while ( <IN> ) {
}
HERE
'
Input: None
Output: Replace selected text
Key Equivalent: command-option-ctrl I
------------------------------------------------------------------------
------------------------------------------------------------------------
Perl Outfile
------------------------------------------------------------------------
Save: nothing
Command:
perl -e '
my $CD="/Applications/CocoaDialog.app/Contents/MacOS/CocoaDialog";
my $TMD=$ENV{'TM_DIRECTORY'};
chomp(my $rv=`$CD fileselect --text "Select a file" --no-newline --select-directories --with-directory "$TMD"`);
if (-d $rv){ # dir selected: need to append name
my $out=`$CD standard-inputbox --text "$TMD" --informative-text "Enter the name of the file" --no-cancel`;
my ($name)=($out=~m/.*\n(.*)/m);
$rv.="/$name";
}
chomp(my $file = $rv);
exit unless $file; # user cancelled
print <<HERE
my \$outfile = "$file";
open OUT , ">\$outfile" or die "Outfile: \$outfile\\n\$!";
select OUT; # print to OUT filehandle by default
HERE
'
Input: None
Output: Replace selected text
Key Equivalent: command-option-ctrl O
------------------------------------------------------------------------
Hi,
During the last couple of weeks I have not been able to comepletely
follow all the stuff going on in this mailinglist. I completely missed
the introduction of the "view as HTML" feature. I noticed a couple of
references to it and have seen that some people use it now in their bundles.
However, when I wanted to get into it, I found that bundles are not
really documented. Could people perhaps put some documentation on the
wiki about their bundles?
But an even better way would be to have some help/description feature for
bundles within TM...Allan, what's your take on that?
Jeroen.
--
"We apologize for the inconvenience"
(See "The Hitchhikers Guide to the Galaxy")
Beta 4 is out -- to those of you who got the beta 3 w/o bundles and
therefor installed these as user/local bundles, I'd recommend removing
these, since updated defaults won't show otherwise (but new defaults
will).
Just so you know:
Today I noticed TM didn't send the file back to Fugu anymore on save.
(It can be weird when you think you saved files when, in fact, you
didn't!)
After reinstalling TM, rebooting, repairing permission, etc., I
remembered I had enabled "atomic save" earlier.
This was the problem, everything back to normal when it's unchecked.
I don't know if the problem is in Fugu or TM.
Shouldn't TM falls back to normal writes?
Anyway, here is a log entry in case it helps:
-------------
2005-02-09 03:51:15.255 TextMate[555] initWithOptions: {
auxiliaryFileInfo = {
customPath = "sftp://fatal@10.0.0.115/temp/test.txt";
fsref = <NSAppleEventDescriptor:
fsrf($FF9C80000013A3280013A3270000000000000000000000000000000000000000…
$)
2005-02-09 03:51:19.086 Fugu[528] coerceToDescriptorType typeFileURL
failed.
2005-02-09 03:51:20.822 Fugu[528] Couldn't coerce descriptor to typeFSS
--------------
I know, it's late here. Must sleep! ;)
--
Fred
The "Find in Project..." feature has been acting oddly when searching
for strings with "special" characters in them. I have the "Regular
Expression" box unchecked and the "Ignore Case" box checked.
I have a project with ~100 files in it. About 75 of those contain the
variable $ROOT_DIR. When I do a "Find in Project..." and search for
$ROOT_DIR I get three results back. I really can't figure out what is
special about the three that are returned. Is the "$" causing a
problem? I would think that if you are not using regular expressions
that all special characters would be automatically escaped.
That's my first problem. Here's the second:
I then tried "*\$ROOT_DIR*" with the regular expression box checked
just to see what would happen. I realize that this doesn't make much
sense as a regular expression. I know next to nothing about them.
TextMate proceeded to give me the spinning beach ball for about five
minutes. My system became unresponsive. TextMate eventually bombed.
I opened TextMate again and repeated the search. Same results.
Should there be error checking on the regular expression before it is
executed to prevent things like this?
Bryce
Hi all,
I couldn't help but chime in here.
As noted, Yummy FTP supports remote editing via SFTP and FTP, and supports TextMate
directly using the ODB editor suite. It will also make a transfer completion sound of your
choice.
Yummy FTP also allows additional editors to be defined other than the standard TexMate/
BBEdit/etc. Additional editors can be selected by using the Edit With option, so this might be
what you're looking for in order to edit with jEdit, for example.
We've also recently implemented the ability to specify remote editors per file name extension,
but that is only in the beta we're working on right now. This will allow you to just double-
click a file and edit it with the remote editor you have previously chosen.
Of course, Yummy FTP isn't free but $25 isn't too painful :-)
Sorry for the advertisement. I hope the information is helpful.
Best regards,
Jason
Jason Downing
----------------------------------
Yummy Software
Software so good you could eat it. Yum!
www.yummysoftware.com
----------------------------------
That is a basic Apple concept, like cmd+left/right to go to the
beginning/end of a line. Try dragging an active selection in Mail.app,
if you hold opt while dragging it copies instead of moves.
My brain can't let go of the instinct to drag text. Is there a way to
make it work?
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
What is atomic saving?
How can I tell TextMate to save as soon as it loses focus? Due to I compile
some Xcode apps inside Xcode, and use textmate to do all my editing and I
keep forgeting to hit Command-S. (unless someone has a more effient way)
Thanks :)
Paul