Hi all,
Can someone please provide some applescript to open a new blank
document in TextMate. I plan to assign this to a Quicksilver trigger
so that a new text file is one key combo away at all times.
Cheers,
-----------------------------
Luke Daley
http://www.ldaley.com
-----------------------------
Hi all-
Just a quick note of appreciation for the rash of improvements to the
R bundle in the last little while. I've been using the R console for
three days solid, and it and stuff like the command template and help
commands are working great. It's turning into a seriously formidable
environment. What good stuff.
Haris, Kevin, and others -- thanks much.
-Alan
exception rendering is slightly buggy. you use the message property of the
exception object, but actually it doesn't work... dunno why.
fixed another little glitch, where you had "function <module>" being printed I
replaced it with "module body". the last modified line replaces "untitled" with
"unknown location", but you might want to see if you want it merged or not. I
just like these two items this way, YMMV ;)
ciao,
domenico
p.s.: someone PRETTY PLEASE can give me my progressive output rendering back? :
(
Dear all,
I'm a big fan of TextMate and a longtime user, but have only recently
completely abandoned Emacs and seen the light. :-) While TextMate
really lives up to my wildest dreams as a text editor, I have found
that there are a couple of little things that I miss. I write a lot
of fiction, and while editing I've found that the Emacs function
"kill-sentence" is extremely useful. I was wondering how difficult it
would be to implement something like this in TextMate, i.e. a command
that would either cut or select the *current sentence*... in the same
way that one can select the current word or paragraph. It seems like
there should be a way to define this using the appropriate scope, but
I'm such a nuubie that I'm afraid to start poking around... Getting
this to work in e.g. Markdown mode (where I do most of my writing)
would be enough. Any ideas?
thanks in advance,
-- Hannu Rajaniemi
Registering for the ADC Leopard talks, I note I have the following
choices in answer to:
What development tools are you using to build your application(s)
today? (check all that apply)
* Xcode IDE
* gcc/Xcode build system via TextMate <<----- !!!
* gcc command-line only
* Eclipse
* Other
Kudos to all.
--
Simon Pride
a: Bronxville, NY 10708
why is the new version of pymate written in ruby?
I don't know jack about ruby -- why should I learn it in order to hack on a
tool I use daily while writing python code? come on, we don't want no stinking
ruby here!
I often compose emails in TextMate and paste them into new messages
in Mail. I think there should be a automated way of doing this.
What I've come up with so far involves transforming the document into
a link and runing it with the "open" command. Something like this:
open "mailto:jo@foo.net,%20elizabeth@bar.com?
cc=sam(a)fake.org&subject=New%20Fall%20Schedule&body=Hey%20guys%21%0A%
0AI%20just%20wanted%20to%20let%20you%20know%20that%20I%20was%20in%
20town%20next%20tuesday.%20Please%20call%20me%20at%20818-555-1234%20so
%20we%20can%20set%20something%20up.%0A%0ASee%20you%20then%21%0A%0A--
oliver"
This works reasonably well.
Obviously, transforming the document into a single link would require:
1. A syntax
2. URL escaping
2. Some clever search/replace
But before I invest time into this I wanted to ask you guys what you
thought.
Is this a good candidate for the existing mail bundle?
Are there better ways of sending the message to mail than thru a link?
What are your thoughts?
--oliver
Hi,
Is there a command to select the current node and its descendants in
an XML or HTML document? I know there is the "select current scope"
command, and the "select enclosing brackets", but they don't seem to
work this way.
It would seem that a "select node and descendants" is quite possible
because the "close tag" command traverses the DOM and closes the
current node.
Greg
I love this concept, but my last version of Justin's command didn't
have image dimensions. Now it inserts dimensions if you're inside a
blank rule or creates a full rule with dimensions in source.css. Of
course, if you're inside parenthesis it will just insert the name
with single quotes, inside single quotes just the name, you know how
it goes. It inserts as a snippet and on the longer snippets it
kindly leaves you after the last semicolon of the last value, so that
if you're using the workflow commands adding more declarations is as
easy as hitting tab or CTRL-N then TAB for a new rule.
I'm actually finding this more useful than the drag command... it's
more accessible and doesn't require the mouse! But they both have
their place, the drag is nice when you have a lot more images and the
folder management comes into play. A big thanks to Justin Palmer.

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
I haven't run across this before, so I thought I'd share.
Here's a simple command for looking up the current word in
Dictionary.app:
osascript &>/dev/null \
-e 'with timeout of 30 seconds' \
-e 'tell application "Dictionary"' \
-e 'activate' \
-e 'end tell' \
-e 'end timeout' \
-e 'do shell script "open dict:///$TM_CURRENT_WORD"' &
We can't just do the shell script because, for whatever reason, it
only works if Dictionary.app is already open. Without the "Timeout"
argument applescript will not wait for Dictionary.app to open before
requesting the definition.
I'm sure there are better ways to code this, but it works for me.
--oliver
[2006-11-02: REVISION 1324]
[REMOVED] TextMate no longer pays tribute to human sacrifices, rape, nor
does it show a picture of the God of the deaths in your dock -- ticket
945BEB5D
lol, please tell me people didn't complain about the easter egg?
Also, while I'm doing things just for giggles, bloggers might want to
check out http://murl.info/14421. It's a little TM command that
triggers an applescript that pulls in whatever text is highlighted in
Vienna (RSS Reader) and formats it as a blockquote with linked
credits and inserts it into your current entry. The applescript is
separate and can be edited to work with other readers/programs.
it's just an implementation choice I find too hurried.
p.s.:
> Because the existing pymate was broken
by any means, the code stinks and it's got lots of ugly bugs hard to fix --
I'm not against a rewrite or something, I'm against a rewrite in ruby.
think about letting the build factory of -- say -- FreeBSD run on top of linux
machines. that's just weird.
come on, I didn't want to be rude and I think I was lacking a ";)" at the end
(even if the adjective "stinking" should turn a light on, how can you be
serious if you say a language stinks?).
it just strikes me as... hell, strange! and no, I have no plans on learning
ruby -- nor should I in order to fix or just tweak something which happens to
be used by... like... python programmers, you know. it's just an implementation
choice which
When I hit ^#, I get this error:
nib could not be loaded: dateInterval.nib (does not exist)
The nib is there at /Library/Application Support/TextMate/Bundles/
GTDAlt/nibs and I killed all my local mods to the bundle in ~/Library...
Any idea what's up?
- Ben
Hi,
Within TM's status bar you find 'Line: xx Column: xx'
If I use e.g. Tab Size: 4 and 'No Soft Tab' the column counter only
works for TABs from the beginning of a line but not for TABs within a
line.
Example:
I have the following line (numbers := column counter):
TAB TAB TAB Hallo
| | | |
| | | -13
| | -9
| -5
-1
OK, but
TAB TAB TAB HalloTAB World
| | | | |
| | | | -21!!! (it should be 22!!)
| | | |
| | | -13
| | -9
| -5
-1
The same also for 'Hallo TAB World'.
Please note: 'TAB ' means '\t' but easier to count.
Or am I completely wrong???
I'm using Cutting Edge TM 1.5.4 (1324)
Best,
Hans
Hi there,
I have this very simple PHP code as a test :
<?php
$chaine = "é";
echo ord($chaine[0])." ".ord($chaine[1]);
?>
The $chaine variable is initialized with «é» (e with acute accent)
just in case…
If I save this file in UTF-8 as usual and use the “Run” command,
it returns “195 169”, as it should : it's the UTF-8 representation
of the letter é.
But if I save this same file in ISO-8859-1 and use the “Run”
command once again, I still have “195 169” whereas I should
have “233” (representation of é in ISO-8859-1).
Note that I don't have any problem if I host the files
on a server somewhere. Therefore, it seems to be a small
bug with the PHP “Run” command which returns the UTF-8
representation no matter what…
Thanks in advance :-)
...ala Justin Palmer (http://murl.info/14420)
I took the liberty of taking Justin's sweet little mod of Allan's
tm_dialog example and incorporating the all-purpose CSS drag command
code. Just for giggles. (Nice lineage, huh?)
It's mapped to CTRL-SHIFT-I right now, and it's actually really
handy, especially when there aren't a ton of images in the project.
I haven't gotten a chance to really explore tm_dialog yet, but I'm
sure this could do a few more tricks ;-).

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
* the grammar now scopes module definitions, class definitions, function
definitions a.s.o. as meta.definition.*
* the symbol list only shows meta.definition.* stuff (I like it this way, but
if there are any objections I'd like to know which are your usage patterns)
* lookup in hoogle: hoogle is the documentation search engine for haskell
libraries; code stolen mercilessly from the web searches bundle
* load in ghci: useful if you're debugging your purely functional code
(sometimes it happens... :P). it loads the current file in GHCi and leaves you
at the interactive terminal. if you use HUGS or other haskell implementations
feel free to "generalize" it, I'm a GHC-only type of person... ;)
* LAZY.tmtheme got enhanced to support more and more Haskell goodness. minor
updates to Prolog and PHP support too.
this time my stuff should be easier to merge... ;)
ciao,
Domenico
Dear all,
thanks for the feedback.
I changed the following:
- the tm_dialog remembers the last screen position
- add an history list for search patterns
-- default 5, but changeable via environment variable (see help)
-- if you choose the last item from the history list it will be placed
on top of that list
- self-repair mechanism
-- if the syntax of the plist is not valid, Hypersearch will use the
default one
- look for an empty string will open a tooltip
- the HTML window will be displayed if there is something to display
(thanks Brad)
Feedback is always welcomed.
All the best,
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Would it be possible to add Rename functionality (svn move) to the
Subversion bundle? Basically, it would be great if we could just ^A
on a file, select Rename, enter a new file name (or full path for
moving the file) in a simple text field dialog and let svn move do
its magic. Any chance this could be implemented? Thanks.
Sebastian
hello (sorry for my bad english)
I have several questions in connection with the themes.
1) For the LaTeX users with TM : Which topic do you use?
2) Generally, is it possible that a theme can be excellent for
several languages?
I think that it is very complicated ...
In the TextMate manual :
"Changing theme is global i.e. it is currently not possible to select
a specific theme per file or file type."
But is it possible to have a theme for a specific scope or bundle ?
is it possible that this option will be a future feature ?
3) I work especially with Latex and CSS and for Latex, it seems to me
that only two themes are proposed:
Blackboard and Brilliance Black but at each time i' ve some problems
with LateX .
Blacboard is perhaps simple and the best but do there exist other
themes to use LaTeX?
I would like to make some changes but it is relatively difficult. For
example, I often use pgf/tikz and I suppose that many uses pstricks.
I would like to be able to emphasize
\begin {tikzpicture}… \ end {tikzpicture}
and reserved words of tikz in a certain color. I think it's the
same for pstricks.
Perhaps, one among you is able to describe the procedure because I
suppose that it will be the same one for all the packages.
How to make? Do you have recommendations so I can do that myself?
4) Do you know if somebody began a bundle for the authors of classes
and packages (.cls and .sty)?
There are specificities for these files. Best, undoubtedly, is to do
myself these themes and grammar but i need also recommendations to
learn and iunderstand how to proceed !
Greetings Alain Matthes
Hi,
I have tried to do search but couldn't find a solution for this, so
any assistance would be helpful. I want to be able to create a
comment box round a selection - say round the text "comment box"
as below (Eg shown uses Stata style comments). I need
functionality primarily for use in the R and Stata bundles. Thanks
in advance for any leads.
/**************
* *
* comment *
* box *
* *
* *
**************/
danstan