I would like to be able to automatically run a script, when a certain
event happens (such as, a file save), depending on the file-extension
(and maybe also depending on the project).
For example, what I really like to do:
If I save a file that ends in .rb, I want to automatically run a
command that does a "ruby $TM_PROJECT_DIR/test/unittests.rb". If it
fails, it could send me a notification through growl
(http://growl.info)
Hello,
I am really starting to love textmate. I want to add functionality
that will either comment or uncomment the selected text. Right now i
have two commands; one that prepends '# ' to the line and one that
strips the first '# ' on the line. I would really like to have this
handily accessible under one command and have it automagically decide
wether or not I want to comment or uncomment the line. I am sure that
others have added this sort of functionality. Anyone have a graceful
solution?
While I am here does anyone have any handy python editing
commands/macros?
--dfc
Douglas F. Calvert
http://anize.org/dfc/ .::. GPG Key: 0xC9541FB2
A mystic in the sense that I am still mystified by things...
hi,
because the homepage of the wiki is a bit down i post this to the list.
i did build 2 bundles and want to share them, probably some find them
usefull :) :
- mips bundle: syntax-highlighting for mips assemler which you
probably need when you write something for spim
- graphviz bundle: syntaxhighlighting for dot files, this is maybe
usefull when you configured textmate as graphivizs external editor and
you want colored keywords.
more information and preview pictures are at
http://wiki.macromates.com/textmate/show/TorstenBecker
--
Torsten Becker
Hi
If I save a file from TM to ~/Documents/ and then move it from finder
to ~/Documents/ivar/ I would love it if TM could sense that move (I
think it does when using projects).
Just like SEE TM could ask something like "This file has been moved. It
will be saved to the '~/Documents/ivar/' folder, or you can specify
another location.".
kind regards
ivar
>On the subject of anime and icons; when I bought TextMate, the first
>thing I did was replace the icon with the Fuchikoma (from Ghost In The
>Shell) icon from the World Of Aqua 4 icon set by Icon Factory.
>
>http://iconfactory.com/preview.asp?type=search&id=155&query=fuchikoma
Hah! That's the icon I'm using too! The red makes it stand out, it
looks like a robot and it's cool! - Eric
Would it be possible to distribute the TM bundles separately (maybe the
way Konfabulator does, updating the "official" ones when a new release
comes out)? I don't do any C++, PHP, or ASP coding, so I don't see any
reason to keep those bundles around; they get replaced every time I
upgrade TM, however.
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
Hi
I'd like to see something like SEE:s way of letting you switch between
different "File Encodings".
I think it's the best way of switching encodings so far!
I might have missed something but right now all I know of is the
"Re-Open With Encoding:" menu which I rarely use. Mostly because I
don't need to change file encoding that often but secondly because it
forces me to save my file to be able to switch encoding.
kind regards
ivar
ps. I really(!!) like b8 and the cleanup of menus!
>I am hoping I¼m just missing something obvious... Is there some kind of
>list of functions/methods? I.e. Similar to BBEdit or SEE¼s popup function
>list?
Here's my kludged version of it for Perl using TM
commands, which pops up a separate window listing
all the subroutines (i.e. lines that begin with
'sub ').
Make a command:
- before: Do Nothing
- Command: grep -n "^sub "
- Std In: Entire document
- Std out: Show in separate win
- Pattern: ^(\d+):(.*)$
[this parses out the grep output so we can identify the line part]
- Format: $2
- Line:1
This idea can be tweaked to fit the language of
your choice. I think you can pipe it cleverly
through sort to get the subroutines alphabetized.
good luck, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
>> So basically if you hit an arrow key which will not make the cursor
>> move
>> within the search string it aborts.
>
> IMHO this is a mode, eg the meaning of the arrow key will change
> whether the cursor is in the search string or at an end. Moreover the
> user focus is on the occurences hilighted in the file, rather than on
> the field at the bottom of the window. Since that occurence is
> selected, it seems coherent that the arrow keys would do what they
> usually do: exit the selection. Also that behavior will be familiar to
> Emacs users.
>
> Fixing using backspace shouldn't be so much of a hassle since search
> strings are typically short, and as the results are incrementally
> displayed, the user can detect errors early.
>
> -- D
my first impression on that issue was: of course there's a need to be
able to navigate within the search string using the cursor keys, after
all that's the way osx behaves in any kind of text input field with the
focus (even in incremental searches, like in itunes).
but then i tested it myself in textmate and found that this behaviour
isn't necessarily what i expected here, because the search string's
corresponding part in the document was highlighted and i thought it
would be intuitive using the cursor keys now to directly navigation in
the document.
so i no longer have a definite opinion with it. gui or not to gui,
that's the question ... ;-)
___✍
larsen