Hi all,
This may have been mentioned before somewhere, but before you tell me
to RTFM or look at the Wiki let me say that: I have, and I couldn't
find what i was looking for. So, here goes....
In his Ruby on Rails demonstration video clip, David Heinemeier Hansson
launches TextMate into a kind of "new project" mode automatically by
typing "e /folder/path" in the terminal. Genius ! But... how do I do
this ? Is this a feature of TextMate available to the application
itself ? For clarification of what I'm rambling on about, the Quicktime
clip is here: http://media.nextangle.com/rails/rails_setup.mov ( 2mins
18 seconds in ).
I wanted to ask this question here so others could benefit from the
answer before I go pester David for the answer !
Thanks in advance,
Paul Burgess.
I was selecting text using the shift/option/arrow keys today and at some
point my selection turned rectangular! However to my dismay I'm unable
to figure out what I did that allowed me to switch over. What's the secret?
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
This is an issue I encountered using the built in syntax definition for
Python - I don't like antialiasing so I have it switched off, unfortunately
the Python syntax uses italic format in comments, which looks appalling
without AA. I don't really want to switch AA on as that affects every
language, and I don't want to have to edit the Python bundle to remove the
italics. Is there a proposed solution to this? Would the style sheet
approach to syntax files help?
Chris Jenkins
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
One of the few things that I had in vim that I don't in tm, and that I
miss, is a code beautifier. I would like one for Ruby. Does anyone
have some solution for this (like a command or something)? It would be
nice to be able to configure it too, like number of spaces for indents,
stuff like that. Undoubtedly, some Ruby guru has probably written a
Ruby beautifier in Ruby : )
--
Best regards,
Lang Riley
TM 1.1b5
I'm trying to create a project containing the .files from my home
directory (.profile, .bashrc, &c.). When I explicitly add a .file to
the project, either by dragging a proxy icon from an existing TM
document, using the "tm" command line program (with multiple files), or
using "add existing files..." from the project drawer, the files just
disappear from the project. There used to be a per-project file/folder
pattern setting accessible from the info window, but that's gone, with
only the ability to edit per-project variables.
Am I doing something wrong, or is this a bug?
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
I'm happy to see there's some kind of interest in my PHP bundle. I'm
still working on it so please contact me at [ cubiq at cubiq.org ] if
you have any suggestions. In the repository under the PHP.tmbundle
you'll also find a README file with some info and revision history.
The bundle contains about 3000 php functions, deprecated and
experimental ones have been stripped out for better performances, in
the README file you'll find excluded functions.
@Mats Persson: please contact me if you have any suggestions.
Best regards,
Matt
I'm wondering what's up with the website. It hasn't loaded for me for
well over a week.
I receive the following message when I go:
Precondition Failed
The precondition on the request for the URL / evaluated to false
OK, I was finally spurred into making my reworked PHP bundle available
for others to use and found that Matteo Spinelli is working on the
official PHP bundle. So Matteo, please get in touch to see what we can
work together on.
Allan, if Matteo is not here could you let me know his email ??
Secondly, I too like to get access to the svn for some other bundles
I've got.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
I think that might have been a little harsh. What I mean is this: The
web preview works awesome for real time viewing of html code. I am
amazed. Really. But, I don't know anyone who write HTML anymore.
Sometimes to make a Smarty Template, I'll write HTML and then retrofit
it, but usually not. The web preview needs to be able to read from a
valid URI, like http://127.0.0.1/projects/clientX/index.php
I would at least like to find a solution to get Safari and/or Firefox
to refresh on save. But I think the built in tool using webkit would
be coolest. Has anyone figured this out?
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
Hi
Im wanting to use the PHP bundle in textmate... but I was wondering how
i actually add it? I found the bundle i want:
http://macromates.com/svn/Bundles/trunk/PHP.tmbundle/
And Ive just found the bundle editor :) Never used it before (bundle
editor)...
So im wondering how I go about adding it to my textmate? I have looked
in the wiki but havent found an answer...
Thanks
Eoghan
Hi,
Just wondering how to download complete bundles from the repository. I can
navigate around the trunk in safari and display all the individual files,
but how do you get a complete bundle?
Sorry if I am missing something, but couldn't there be zipped versions
available?
Max
I've been working on an SQL syntax plist with some more keywords but I
can't see a way to pass in a "case insensitive" flag to the regex
matches. I've reverted to something ugly like this :
match="\\b(sum|SUM|count|COUNT)\\b" ... etc
any suggestions?
thx, K
Hi
Would it be possible in future versions for braces to be outlined, like:
{
}
if i select/go to the closing brace the opening brace row would be
outlined indicating its the opening one to me. Would also work for ()
and markup.
Thanks
Eoghan
After the small features request, here is a big one ;)
I'm sure we talked about it here, but I don't remember if this is
planned or not.
Actually, I use TextMate for everything text-related except one thing:
comparing two document(Diff).
Unfortunately I need this feature a lot. For me, this is "The Last Big
Thing" that TM misses.
The best solution I found so far is to have a command launching
TextWrangler to compare the active one and one I have to choose(w/Cocoa
Dialog).
1) The way to launch this is a bit clumsy. (Having to navigate thru an
"open" dialog)
2) Having TextWrangler opened just for that sucks a bit.
3) Having to edit the files in TW really sucks. I miss all the TM
goodness and It makes me feels I'm back in time. ;)
(And worst of all, I use TM shortcuts all the time and wonder why my
commands, snippets, etc. don't work 8-| )
4) This doesn't work with remote files, or I have to open them in TW.
Meaning changing the prefs of my SFTP client.
What I like in the "Compare two front documents" feature of TW:
-The full screen is shared by the two docs with the Differences window
under.
-You can navigate easily thru the diffs.
-Closing the Differences window brings the docs back where they were.
-It exists. ;)
You can even check differences of folders and batch files.
So, my question is:
Do you plan to implement this in TM, Allan?
If the answer is yes, any idea when we might expect this?
Meanwhile, does anybody have a better solution?
--
Thanks
I've found myself using TM for almost every single thing that I write,
so sometimes I like to be able to create a new TM document in the
current Finder window.
Had a look at trying to create a Contextual Menu plug-in, but it looked
too complicated, so does anyone have a suggestion for how to do this ??
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Hi Mats,
I have already got skEdit and really like its implementation of the file
chooser thing I was proposing, its pretty much what I was trying to
emulate
in TM ;). However I have to agree that although it is a very good
editor it
can't match TM's flexibility, and I thought Texmate could offer the
best of
both.
I have put together a command that outputs filenames matching the first
few
letters but need a way of selecting options when there are multiple
results.
We'll have to wait for commands to output to a contextual menu to fully
realise some of the potential of these ideas, but when it is supported I
think there will be a lot of great tools available to us.
Max
> OK, not wishing to detract, offend or anything else here other than
> being helpfull. Max, you can find a really nice implementation of this
> type of functionality is in skEdit when dealing with <img> or <a>
> tags. skEdit is $20 and beats both DW & BBEdit, but struggles a bit to
> compare with TM in some areas :)
I know that could be achieved as a macro but I'd like to see a key to
exchange the character under the cursor and the next one, à la ^T under
emacs.
Thanks,
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004
Maybe it would be a bit harder than I thought to make it backwards
compatible. Keep thinking about it though.
The reason I asked for it in the first place is that I was making a script
to insert filenames into textmate, a bit like pressing tab in terminal.
Sometimes I would get more than one result, and I wanted those to appear in
a list. Now I've been thinking about it though, it might be a nice thing to
have this behaviour built into Textmate.
An example would be that if you typed in an html document: "href='i" and
then pressed tab, you could invoke a menu which showed files matching 'i.*'.
It could even be multi-dimensional as in my included mock-up.
Thamks
Max
I hadn't really thought of the possibilities for the contextual menu, I
really thought of it for choosing a list of snippets to insert after a
selection. If it could run commands as well, that would be very cool.
XML sounds like a good way of generating the list, I don't use it that much,
but couldn't each 'menu item' have 'input', 'output' and 'action' children
to define what it should do?
Would it be possible for you to make a menu that just had a list of snippets
at the moment, which could be further expanded in the future? I look forward
to any progress in this regard.
Keep up the great work,
Max
Would it be possible to make a command output option that displays as a
menu. It would be like the current behaviour of commands, snippets etc that
have the same key command.
You could then have commands like 'ls $TM_FILEPATH', and choose from the
list.
Max Williams
Howdy;
I like many of ya'll switched from BBedit to textMate, and love it, I
can really use some help getting 'SmartyPants' and Markdown runnning (I
got HTML Tidy going) how exactly do I get a PERL script running?
any help would be hugely appreciated..
--
s. rosenbaum
----------------------------------------------
http://www.visualchutzpah.comhttp://www.saulrosenbaum.com
----------------------------------------------
Greetings,
I'd really like to be able to scroll past the last typed line in my
file (without adding more blank lines), a la VI…Is there already a way
to do this?
Regards,
David Wooten
I'm looking for a way to have the commands the Subversion bundle
execute without me having to edit them to include the full path for
svn.
I initially thought that adding the following line to /etc/bashrc would
do the trick
alias svn=/usr/local/bin/svn
unfortunately it didn't work. Would someone kindly point me in the
right direction?
Thanks,
Simon
I am using hyperref in a latex document which works great in TextMate,
especially with the HTML output. What is really nice is the ability to
check that the links are "hot". However once I follow a link i have not
been able to find a "Back" command so i can check the next link. Am I
missing it? If not, could we have one?
Thanks
Robert
Hi!
Would it be possible to show the full path of a file somewhere, for
example in the title bar? Currently it's not easy to keep apart two
files with the same name but different locations.
Regards,
Lars
--
"Stil ist die Fähigkeit, komplizierte Dinge einfach zu sagen - nicht
umgekehrt." -- Cocteau, Jean
Any instance of single-quote-double-quote-single-quote (as in the
character representation of double-quote) will break the string parsing
engine.
Example:
while(expr.charAt(j) != '"' && expr.charAt(j) != "'" && j<expr.length){
// code
}
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
+55 (21) 9127-2819
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hello,
Is there a way of opening files I load via Transmit into a new tab?
If I download a file now each one opens in a new window.
Many thanks,
Richard
I've kinda grown accustomed to pressing Shift + Delete to delete to
the right of cursor. Any chance of this being added to Textmate? Is
it something I can add myself?
Thanks,
Vick
Allan Odgaard wrote:
> Two? In the bundle editor?
> My TextMate only has one. If you have a local bundle it should merge
> these based on the uuid found in the info.plist file contained in the
> bundle.
I think it's because I changed the PDFLatex command, as per Sune's
instructions. So I have LaTeX, the standard bundle, and Latex, with
just my altered command (different UUIDs).
Would that cause it?
I don't use many of the languages TM supports, so in the bundle editor
I have them filtered out. However, in the "Syntax Highlight as..."
menu, it still lists them all (past the edge of my small screen).
Please could this be changed to match the bundle editor so I can, in
effect, ignore the bundles I don't use, whilst still having them on
disk. Or is there a better way of doing this?
Thanks.
Does the file register only accept paths with ":" as a delimeter? I'm
putting together an Actionscript "Test Movie" command for an MTASC
Bundle, and the file paths aren't working for it. I suspect this might
be the problem. Any ideas?
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
+55 (21) 9127-2819
ben(a)incomumdesign.com
http://www.incomumdesign.com
The new text zoom feature is great, except that zooming in is literally
bound to Command+`+` (that's command and the plus key). On PowerBooks
and iBooks, `+` requires an extra modifier (shift), whereas `-`
doesn't. Ideally, both would be consistent with one another.
Could zooming in be bound to Command-= (as well as Command-+)? From my
quick tests, Safari and Proteus similarly support both, but Mail,
Terminal and TextEdit don't (go figure).
Any opinions on this?
Rich Barton
Thanks for your support, Eric and Chris ( I think... ;-) )
As Eric said, we're working on new things for Yummy right now. Things that Transmit doesn't
have and things that Transmit does have. Of the latter, DockSend is one of the simplest to
add and will be in the next update. Tabs will take a bit more work, but they will come and in
the meantime Yummy will have stuff they don't. And we won't be charging $18 to
upgrade.. ever.
Cheers,
Jason
> > Great! Only a couple days after I bought a license for YummyFTP too.
> > :/
> > Transmit 3 looks amazing so far. It looks like I'm going to be
> > upgrading
> > soon.
>
> As someone that has owned and used Yummy for a while now I can give you
> a little encouragement:
>
> 1. I think that most of the new features of Transmit were already in
> Yummy! The only thing that jumps out as not is the tabs.
>
> 2. Yummy is being activly developed with betas put out so have no fears
> about it falling behind. It is a great product and also works with
> textmate. In fact I have both Yummy(local and remote) and Path Finder
> set so that if I hit Command-B it opens in texmate.
>
> Sincerely,
>
> Eric C
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
Jason Downing
----------------------------------
Yummy Software
Software so good you could eat it. Yum!
www.yummysoftware.com
----------------------------------
On Feb 17, 2005, at 6:58 PM, Fred B. wrote:
> On 17 févr. 05, at 23:44, James Edward Gray II wrote:
>
>> I want to build a command, macro or whatever to have TextMate do a
>> chore for me. I've taken a couple of passes at it, but I'm not having
>> much luck yet and could use a little help.
>>
>> I have many snippets that help me quickly build Ruby iterators.
>> Here's the one for each():
>>
>> .each { |${1:e}| ${1:e}.$0 }
>>
>> So when I run that I get:
>>
>> .each { |e| e.<cursor here> }
>>
>> When those are getting longish, I break them up over multiple lines,
>> but I switch { ... } to do ... end. So I want to change the above to:
>>
>> .each do |e|
>> e.<cursor here>
>> end
>
> Sorry if I'm missing something, but would this be ok for you?
>
> each |${1:element}| do
> ${1:element}.$0
> end
That is an option, of course. However, it requires me to double the
number of iterator snippets, differentiate the keystrokes for them and
select the right one before I get into writing it. I was looking for
something better.
I'll take a glance at Chris' macro tomorrow and see if it gets me
there. Thanks to you both.
James Edward Gray II
I want to build a command, macro or whatever to have TextMate do a
chore for me. I've taken a couple of passes at it, but I'm not having
much luck yet and could use a little help.
I have many snippets that help me quickly build Ruby iterators. Here's
the one for each():
.each { |${1:e}| ${1:e}.$0 }
So when I run that I get:
.each { |e| e.<cursor here> }
When those are getting longish, I break them up over multiple lines,
but I switch { ... } to do ... end. So I want to change the above to:
.each do |e|
e.<cursor here>
end
I was trying to do this with a command, but it proved harder than I
expected. Any tips are greatly appreciated.
Thanks.
James Edward Gray II
Working with PHP code I prefer to have my comments prefixed by # (hash)
rather than // (double-slash).
However, when using Text->Shift Left/Right these comments are not moved
together with the other text.
Anyone have an idea of how I can make that work ?? Is it something only
for Allan, or just syntax file issue ??
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
I've got a fledgling Apache bundle built (can I get repository access
please Allan?) and have a couple of questions regarding how things
work.
The bracket { } based syntax.plist file I'm editing gets converted to
an apple plist file when textmate is launched, firstly why? and
secondly how can I stop it happening as it's easier to edit the bracket
based file in place.
The following (with a unique string) crops up in a few of the other
bundle syntax files, what is it?
uuid = "991022B4-6B1D-11B5-90EB-000D93589AF6";
Thanks,
Simon
I must say everybody is doing a great job writing proper subjects, and
I appreciate it very much! :)
I just have one request, namely that you only use “Req:” or similar
short prefix for feature requests. “Small Feature Request” is a little
long, and probably causes the actual subject to be clipped in many
clients (at least in mine ;) ).
Kind regards Allan
The font I used is called "Myriad Pro Semibold", which is included in
all, or at least most of Adobe's Products... by the way, Apple uses
the same font for all of their products :)
best regards,
Wolfgang
Am 15.02.2005 um 13:00 schrieb textmate-request(a)lists.macromates.com:
> On Feb 15, 2005, at 4:00, fatal wrote:
>
>> (BTW, does somebody know the font used for the type names on the
>> actual icons (CSS, PHP,etc.)?)
>
> There is an icon kit with templates which I think include the font
> setting, though I don't know if Wolfgang used this:
> http://mikeash.com/AquaIconKit1.1.dmg (and I don't have photoshop or
> similar myself, so I can't even read out that font setting for you ;)
> ).
>TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n
's#.*include/\(.*\)#\1#p'|tr / .` \
Allan,
I couldn't get this to work. The TM_PACKAGE is always blank.
You can see the command and template here
http://paste.lisp.org/display/5811
Am I doing something wrong?
Don't know if this is a feature yet (?), I haven't found anything like
it in the docs or in the menus...
In jEdit I used a feature all the time that auto-indented my code blocks
by pressng TAB. Is this available already, and if not, any plans for
future releases?
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
+55 (21) 9127-2819
ben(a)incomumdesign.com
http://www.incomumdesign.com
On Feb 14, 2005, at 9:01 PM, Jarkko Laine wrote:
> On 14.2.2005, at 20:11, James Edward Gray II wrote:
>
>> I'm really digging into snippets (and loving them, by the way). One
>> question though, I see $0s used in places and I'm not sure what it
>> does. Could someone explain it to me? Thanks.
>
> $0 is the place where the cursor is placed after the snippet has been
> run.
Really? I thought that was $1. Then you can tab to $2, $3, etc.
Maybe I didn't ask my question right. Let me try again. I understand
$1 through $9, but I didn't know there was a $0 zero and in playing
around it seems to behave slightly different from the others. My
question is, how does $0 relate to $1 through $9?
Thanks.
James Edward Gray II
How do you substitute one set of TM icons with another? All I've ever
done is copy-paste from the get info window, but this is on a per-file
basis.
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
+55 (21) 9127-2819
ben(a)incomumdesign.com
http://www.incomumdesign.com
Up to this point I've been doing macros the dummy way, recording actions
and saving them, etc... however I'd like to get a little more control
and get access to things like cursor position, etc, that recording isn't
going to give me. Is there a macro API? I haven't found any references
to one in the docs.
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
+55 (21) 9127-2819
ben(a)incomumdesign.com
http://www.incomumdesign.com
I have a variable "myPackage" in my template. I would like to replace
that with the directory of the template.
For example if I created a file at
/project/include/com/kidbombay/Myfile.as
I would like to replace all instances of myPackage in my template with
"com.kidbombay"
Basically the steps are
1. Is the file located inside a "include" directory? If yes continue.
2. Parse all folders down from the include level.
"include/com/client/project" would return "com/client/project"
3. Replace the slashes with dots. "com/client/project" becomes
com.client.project.
4. Replaces all instances of myPackage in my template with
"com.client.project"
How would I do this? I am not very familiar with perl.
Thanks!
I'm really digging into snippets (and loving them, by the way). One
question though, I see $0s used in places and I'm not sure what it
does. Could someone explain it to me? Thanks.
James Edward Gray II
I have tried downloading b5 twice. Once from the prompt inside tm b4
and once from the website and both times the dmg has reported that it
was not mountable...
never had a problem like this before so I am at a loss as to wether it
is something on my end.
Thanks,
Eric C
Hi folks,
Is it me or is the Edit in Textmate service broken in b5? Text acts
like it gets cut and immediately pasted.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Boy, you give us a little HTML and some of us want more. Here are two
ideas for the HTML Output. Version 3.0? anyway, here they are...
1. Let txmt:// handle commands/snippets/etc and send them to existing
windows. I don't know how hard that would be.
2. Somehow let commands process the results of an HTML form. Not
100% sure how this could work, but I'm imagining being able to set
form action=txmt://...
The upshot of #1 is that you would have a mini-Dashboard in TM.
People could hack out command palettes of all kinds. #2 would add
even more flexibility.
These brainstorms are the result of me wanting floating command
palettes and trying to think of a good interface for my 'Edit
Filenames in TM' contextual menu...
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Because of the Text -> Convert -> to Titlecase key binding (option+u),
I can no longer (easily) insert characters with umlauts (ü, ï, etc.).
Is there a workaround/clever solution/cunning plan to deal with this?
Rich Barton
I don't know if this has been aswered or not, but is it possible to set
multiple folding starts and stops in a syntax file? Like can I edit the
Java syntax to fold { } *and* /** */?
Jonathan Raphaelson
University of Colorado at Boulder
--
Home: 303-469-3442
Cell: 720-937-4372
jonathan.raphaelson(a)colorado.edu
jonraphaelson(a)gmail.com
Just downloaded TextMate today after searching high and low for a text
editor for OS X that has folding. I didn't realize it was a such a
sought-after but generally unavailable feature. I've been hand-coding
in Dreamweaver, which i like for its auto-complete and hints, but
beyond that I haven't really had much luck marrying HTML and PHP in its
framework.
Anyway, to my questions, and thanks for bearing with me as I explore
Text Mate, which looks great. If it's as good as I think it's going to
be, I'll gladly pony up cash for TM.
As far as I can tell, Text Mate won't "remember" code blocks that
you've marked for folding unless you change something in the plist
files with the respective syntax bundles. Yes? (I was surprised that
I could fold up lots of code, save the file, and then lose all of my
foldings when I reoped the file. At first I thought this was because I
hadn't put the file into a project and saved the whole project.)
Anyway, I basically have no idea what I'm doing. Is there some easy
way of specifying the the opening and closing expressions for folding?
Does this require that you have a good understanding of regular
expressions?
I started out viewing my code with HTML (PHP) syntax, which
automatically recognizes some tag structures. When I switched to PHP
syntax, which I like better, it doesn't seem to recognize anything at
all. How does one add or modify the plist information so that TM will
"remember" that I folded blocks such as:
<?php
...
?>
or even
<form>
...
</form>
?
Thanks for any help you can provide. Sorry to be so verbose.
Chas
If a Latex document is split into multiple files, the "to PDF" command
(as advertised on the blog), generates an error. It worked beautifully
previously (B4) - please could this be fixed in the next beta.
Also, there are now two latex bundles (LaTeX and Latex), which is the
most up-to-date?
Thanks,
Tim
Ok,
Possibly very obvious, ...but I can't figure out what key (screenshot
attached) this shortcut refers to.
I'm using a Powerbook. Does everyone know this but me?
Thanks,
Vic
I have a number of Commands to insert some text into the document, but
all of them have a couple of 'side-effects' that I don't want.
1. The inserted text is always selected, and I would prefer it to not
be selected.
2. There is always a New line character behind the input, whereas I
would just want the cursor to remain immediately behind the inserted
text on the same line.
What is it that I'm missing or doing wrong ?? Any help would be
gratefully received.
Command Examples:
INSERT DATE:
Save: Nothing
Command: echo `date +%Y-%m-%d`
Input: None
Output: Tried all versions ( Insert as Snippet / Replace Selected text
/ etc )
INSERT PATH2FILE:
Save: Nothing
Command: echo $TM_FILEPATH | sed
"s|^$TM_USER_ROOT_DIRECTORY\(.*\)\$|\1|"
Input: None
Output: Tried all versions ( Insert as Snippet / Replace Selected text
/ etc )
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
We've talked about this before, but I don't think anything became of
it. Here's the idea:
Create a preference so that new tabs are not created for every item
clicked in the project drawer. To create a tab you would have to
shift-command-click or something like that. Without the modified click,
the current file would open either in a special "current item" tab on
the left, that would simply be replaced by whichever item is clicked on
next.
This is similar to Safari's tabbed page behavior.
For super-organized people that remember to close all the tabs they
don't really need, they can choose not use the preference and retain
the current behavior.
For people like me that quickly reference other files and then forget
to close them, this would be a nice way to avoid unnecessary tab
clutter.
Ed
Especially when using things like the Subversion bundle, these files
showing up in the 'Open Recent' makes the feature approach useless. Is
there any way that these files could be ignored for this?
--
Robert M. Zigweid rzigweid(a)zigweid.net
http://rzigweid.zigweid.net
I'm starting to dig a little deeper and let TextMate do more for me.
Next stop, templates. While we're there, here are my questions about
them:
1. Can I control where my cursor appears after the template is filled
in?
and
2. In the project's New File dialog, the template list is in a
predefined order and the top ten items have key shortcuts. How can I
affect this listing, to get my templates were I want them?
Thanks.
James Edward Gray II
Thank you!
BTW I was dubious about the pen in the icon previously, but in my dock
it looks pretty good. (I've liked all the recent designs actually.)
Paul
The bundle is just gorgeous, especially for things like "svn blame".
It really shows the potential of the HTML output.
However.
svn is extremely slow on my computer (and perhaps on yours). Is there
any way to either (1) put up a status bar (cocoadialog will do it)
and/or (2) make the thing run in the background or otherwise not
block TM from running?
I'm thinking (2) is impossible unless Allan reworks how commands are called.
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
I took my own stab at an icon this morning, after reading Apple's
Guidelines. It didn't turn out at nice as anything that's been
presented here already, but I decided to post it anyway in case it
gives someone with more talent than me any ideas.
http://www.grayproductions.net/ruby/images/TextMate_Icon.png
In my defense, it looked a lot better when I was still playing with it
at large sizes in the ray tracer. :) You could almost read the code
and you could see the brushed metals. Ah well, it seemed like a good
idea at the time.
James Edward Gray II
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
Hello. I'm a new TextMate user, still trying to get the hang of using
an automation heavy editor. I've run into a few questions as I'm
getting use to the program and even managed to answer most of them
myself, with a little playing around. One is still tripping me up
though, so I thought I would ask.
I have Smart Typing turned on and am trying to figure out if I like it.
Most of the time, it's fine, but there are times when I don't want the
pair, like the apostrophes in this sentence. Is there any way to get
it not the add the closing marker for a single keystroke?
Thanks.
James Edward Gray II
Allan,
Here's a suggestion that came to me this morning. How about applying
the wonderful logic in the file chooser to commands and macros? I was
thinking of it being very much like Quicksilver for TextMate commands.
I love it that the number of Bundles for TextMate is growing so
quickly! What I don't like is that there is very little structure to
the allocation of keyboard shortcuts. Its very quickly becoming
emacs-like in the number of option-command-control-foo key-combos one
must remember. I know they are all there in the menu system, but I
prefer to not use the mouse very much when I'm writing and programming.
One thing I always like about emacs, was that I could type Meta-x and
type in the the beginning of a command, hit space for auto-complete,
maybe a couple more characters, and I would have the command I was
looking for. I used this technique for a whole host of commands that I
used fairly often, but not often enough to remember the keyboard
shortcut. I think you could easily go one better by applying your
matching algorithm to macros and commands. Another thing that I liked
was that emacs was self-teaching in that it would often tell me the
keystroke needed to activate the command I just typed, so that after
seeing it a bunch of times I would just start to remember.
Brad
Brad Miller, PhD
Assistant Professor
Luther College
http://www.cs.luther.edu/~bmiller
jabber: bnmnetp(a)jabber.org
Woah, quick response! Thanks.
I would like to be able to preview latex equations as I'm writing. I
really like writing latex, but can't wrap my mind around all the
brackets in latex equations. There is a service called "equation
service". In the text editor, you highlight the text you would like
previewed and call the equation service. It cuts the highlighted text
into the clipboard, turns it into a pdf, and then copies this into the
clipboard and pastes it into your document. The result is that you
see a typset equation rather than a mess of latex code. When it
creates the pdf, it stores the latex code you orignially typed in the
pdf. This way, equation service can be recalled on the pdf preview,
this time replacing it with the orignal latex code so you can edit it.
Under emacs this functionality is provided by an addon called
preview-latex which is brilliant (
http://preview-latex.sourceforge.net/ ). However, I'm fed up with
emacs and would like to try a cocoa based editor, as they are way more
easily applescripted.
The webpage for equation service is
http://www.esm.psu.edu/mac-tex/EquationService/
- Rob
P.S. (I may have imagined PDF Replacement Services. The equation
service home page talks of a program either supporing or not "text ->
PDF services". I have looked on apples developer site and found no
reference of this.)
Hi Allan,
I know, you probably have to do other things concerning
TM development but I have one thing which I would like to
see because it now very often annoyed me:
Opening a Folder via the Open-Menu.
It happens very often that I want so open several files at
once but the only way to do this is to mark them all in the
open-dialog via Command-A, but then I can't browse the sub-folders.
So my request is that I can fire up the open-dialog via
Command-O (like ATM) and then also can select folders
and start a new project this way.
--
Torsten Becker
(novaa on freenode)
I know this is probably on Allan's To Do list, and was mentioned not
too long ago by others, but I haven't found the actual implementation
discussed anywhere. So here goes my 2 cent worth of ideas.
I think the ideal implementation of this feature is just like the Apple
implementation in the Apple Menu's - Recent Items. The applications (=
projects) and the files (= TM single non-project files opened) are
separated as sub-menus of the menu item. Nice, clean and easy to use.
The settings for the number of items stored in each sub-menu should
then be set in the Preferences window, something along the line of what
is in System Preferences - Appearance -> Number of Recent Items:
For the past month or so I've been working with 3 projects opened at
all times. Then over the weekend I closed them down and looked through
some new code from a friend. As a result, I now have to 'go hunting'
for the .tmproj files through the Finder. I know, it doesn't stop me
from working, but this is just some basic 'spit & polish' to correct a
minor workflow problem in an otherwise fantastic app.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Hello all,
I started using TextMate 1.1b4 and really like it so far. I'm just
beginning to learn about Ruby and TextMate is much better than BBEdit
with it.
I was looking around the Web for some example code, and saw on
someone's blog that they had colorized Ruby code examples with line
numbers. I emailed them to ask them how they did it, and they told me
they used Vim. They said in Vim, you open the file you want colorized
and type ":runtime! syntax/2html.vim". Vim will then split the window
with the original in the upper half and the colorized HTML version in
the bottom half. He then copies what he needs out of that and pastes
it into his blog entry. He says it will work with any language Vim
understands.
What I'm wanting to know is if there's a way to do something like this
in TextMate? Perhaps a command? I'm not familiar with the inner
workings or power toys in TextMate, so any help would be appreciated.
Thanks,
Chris
With the recent introduction of Apple's Pages software I have been
reading a slew of reviews that point out it's short-comings however
this has also prompted people to write in solutions for them. I have
discovered some very nice services (that will of course work in
Textmate as well) so I wanted to start a discussion on what services do
you use (perhaps not use do to stability issues) and can not live
without.
Here is one that I think I will be using quite often:
http://www.nisus.com/Thesaurus/
Looking forward to some new toy : )
Eric C
I have not found any documentation on how folding works. From what I
can tell it is a combination of character pairs and indentation. I'm
have great stress trying to make sense of a PHP class which I did not
write. I cannot make sense of it in BBEdit which I have always used
for code. (I stumbled on TextMate today.) TM would help greatly with
it's folding feature, if I could properly fold functions. However the
class author used inconsistant indentation (for which he should be
tortured) which is causing folds to begin with the { of a function
declaration and the } of an if clause. I have checked using BBEdit's
Text>Balance feature (which is very cool and should be added to TM) and
the {'s and }'s are properly balanced. But, since the indentation
sucks, I can't fold.
Please correct the folding behavior.
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
For those of you who have not used it, BBEdit amid all bloat actually
has a few useful features. One extremely useful feature is the
"Balance" command. It simple creates a selection that extends from the
beginning of a markup tag (ie. "<div>"), brace (ie "{"), or bracket (ie
"[") to the closing markup tag, brace, or bracket. The most important
part is that it accurately accounts for nesting. This feature seems
expendable on perfected code, but it is a life saver when you have
several nested control structures and you have forgotten a closing
brace. It is also very useful when trying to make sense of
Microsoft-proofed HTML with several nested divs and no whitespace.
The balance command can be call from the "Text" menu item, or by double
clicking an opening or closing brace, bracket or the GT/LT of a markup
tag.
Please add this simple feature.
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
I noticed that my hand automatically went to the enter key on the
numeric key pad to start renaming a file in the drawer. I have a
feeling that I could probably map that key to the function although I
am not sure how to do it. Any Ideas?
The suggestion would be do have the above as a default behavior if it
can be done.
Sincerely,
Eric C
I have arranged for an IRC channel to be set up for TextMate
discussions of any sort. I created it on freenode.net, which is usually
for open-source projects, but the requirements fit the purpose I had in
mind well enough.
A list of IRC servers for this network can be found here:
http://freenode.net/irc_servers.shtml
..and the channel is called, of course, #textmate
Hope to see some people there soon :-).
--
Sune.
:: the Cottage of Lost Play.
:: http://cyanite.org
I have been writing feature requests to the mailing list. As an
application developer and project manager I have had to read, write,
revise, and follow hundreds of functionality specs. I write my
requests with functionality spec verbiage.
Is this a proper use of this mailing list?
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
When any selection is made, the left margin should gain a "begin fold"
icon similar to the ones that appear next to the start of a foldable
chunk of code. It would differ in appearance by replacing the dark
gray color with the highlight color. Clicking this icon would fold the
entire selection into a single fold. Unfolding the chunk of code would
reselect that chunk of code only if another selection did not exist.
Please add this feature.
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
Hi to all,
I finally took 2 minutes to make the yet unreleased 0.7 version of svnX
available to you (not public yet).
You can download it here :
http://www.lachoseinteractive.net/_files/svnX0.7.zip
It has a new feature : you can invoke it from TextMate (via
AppleScript) and be presented with a window with the different
revisions of the edited file.
Here is an excerpt from the help file (Help menu).
Invoking svnX's diff window with Applescript
It allows you to use svnX's diff window from another application.
Usage :
tell application "svnX" to diff /absolute/path/to/the/file
TextMate example :
osascript -e 'set TM_FILEPATH to get system attribute "TM_FILEPATH"' -e
'tell application "svnX" to diff TM_FILEPATH'
You can also invoke FileMerge to compare the file with the pristine
copy (without displaying svnX's diff window, actually without even
opening svnX) :
/usr/local/bin/svn diff --diff-cmd
"/Applications/svnX.app/Contents/Resources/svndiff.sh" $TM_FILEPATH >
/dev/null
More info about svnX here :
http://www.lachoseinteractive.net/en/community/subversion/svnx/features/
Dominique PERETTI
http://www.lachoseinteractive.net
How can automate the process of:
piping a Markdown through markdown.pl
having it open in an external browser of my choice (preferably Opera 8
beta as it does the best job of honoring print related CSS)
grabbing the X/HTML source
putting the source into a new TM document
Is that even possible. I'm open to other suggestions about going from
Markdown to PDF.
-t
Having just tried out the new 1.1b4 version, I just have to share a few
thoughts.
1. The Search field in the File Chooser window should contain a number
of options a la Finder & Mail for how the search algorithm should work.
Although it's cool to just type 'td' to get the 'todo.txt' file, but
sometimes I want to be able to just use 'str' to find the files that
have "string" in them for example. Or doing a find on 'class.' to just
have my various classes show up as another example. There are many
more.
2. HTML Output Options. The new Bundle Editor is really cool,
especially the resizing when switching from "Show as HTML" to "Show in
separate window".
Although I assume Allan have already thought about this, I just have to
ask. Is there any chance that we could have a few options there as well
? Such as
Default Format: None - <pre> - <code> - <p> - (??) (if it's not
obvious what I mean, just let me know)
Default HTML File: 'Choose file field' / path
If we could have a default HTML file that the command output could be
replaced into. Sort of like this:
<html>
<stylesheet>
<body>
$TM_COMMAND_OUTPUT
</body>
</html>
I know that we could create files and code in our commands to do most
of this, but it won't be as elegant.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Hello,
This is my first post to this list, so I hope it's ok. been using
Texmate for web site development with PHP for a while now and love it.
However, I always preview pages in Safari because of the limitations of
the included web preview. With the new html output of the latest beta I
was reminded again of it, but found the same problems.
I think the issue of it closing when you change tabs has already been
brought up, which is really annoying if you want to edit a css file,
for example. Could its behaviour be that it always stays open. If you
want to preview another page, it could then open as separate tab in the
preview window. Only the selected tab need be automatically refreshed,
but you could easily switch to your other previewed pages.
Another thing that I'm not sure if any one has mentioned is that when
you pipe it through the PHP binary, require() and include() don't work
when the files have a relative path to the script.
Any apache server env variables are also bypassed so you can't
reference 'SCRIPT_URI' etc.
I don't really want to change every script to have absolute paths, as
that becomes rather inflexible.
would be glad to hear any solutions anyone might have.
thanks, max