I'm trying to get TextMate to open some html returned from a perl
script with little success.
If I create a new command and type:
echo "<html> ....etc ....etc </html>"
with the Output set to show as HTML everything works fine. However
with the results from the perl script nothing happens. The command
simply reads:
$TM_BUNDLE_PATH/Tools/returnHtml.pl
When the output is set to "Open as new document" or "Show in separate
window" I get to see the raw html without any trouble.
I've check other bundles for examples and searched the archives but
can't see where I'm going wrong, can anyone help?
Cheers,
Simon
The theme booming seems sadly over, it was fun :)
So I'm doing what I can to spice it up again, don't know if this is
good, or who'd want to use it, but here it is. Except for the
comments, all colours are "extremes", that is, either 0 or 255 on the
RGB scale. One possible idea would be to have blue for comments, but
I just couldn't stand to loose the standard grey. I based it on
Allans MagicWB theme and changed the colours (that is to say, both
themes address the same scopes).
Andreas
I currently have NO custom bundles except PHPcodecompletion (in ~/
Library/Application Support/TextMate/Bundles), and still nothing
shows up in js, php or html files. js files have several types of
functions, html/php has divs, images and form elements. I did get
symbols in a css file ...
Any ideas? Going on version 513
Andreas
Hello,
I tried typing txmt://open?url=file:// in a new window and it opened
a new window when I typed the last slash. It looks like its trying to
execute the url.
- Juan
I'm a bit torn what the "correct" behaviour would be in this case,
but when I open an existing file in TM, then move that file and save
it, then it appears wherever I opened it from originally, not in the
new location.
I thought TM checked the status of open files, or does that only
apply for projects?
Daniel.
It seems the syntax parsing chokes on heredocs, code provided below
<?php
$xmlstr = <<<XML
<?xml version='1.0'?>
<movies>
<movie>
<title>PHP: Behind the Parser</title>
<characters>
<character>
<name>Ms. Coder</name>
<actor>Onlivia Actora</actor>
</character>
<plot>
So, this language. It's like, a programming language.
Or is it a
scripting language? All is revealed in this thrilling
horror spoof
of a documentary.
</plot>
<rating type="thumbs">7</rating>
<rating type="stars">5</rating>
</movie>
</movies>
XML;
$xml = simplexml_load_string($xmlstr);
echo "<p>" . $xml->movie[0]->plot . "</p>";
?>
example taken and trimmed slightly from
http://se.php.net/simplexml
Andreas
I decided to just make my own Lua module, by hacking an existing
module and (for now) making up my own UUID. I'm 95% done, but for two
(related) issues:
In Lua, you can have a multi-line string delimited by [[ ... ]]. For
example:
local theMessage = [[
Hello world
How are you doing?
]]
I've got that one covered. However, Lua is tricky and allows you to
have nested [[..]] pairs within this block. So, for example:
local theExample = [[
Hello world
In Lua, a string can contain nested [[...]] pairs.
This includes a case like [[ hi [[ there ]] ]]
More string]]
Is it possible to do this? I don't think so in general PCRE, but
didn't know if TextMate or Oniguruma had some sweet balancing.
Right now I have:
{ name = 'string.quoted.multiline.lua';
begin = '(?<!--)\[\[';
end = '\]\]';
swallow = '\[\[(.|\r)*?\]\]|\\.';
},
which handles a single pair of [[..]] on the same line inside a
block, but doesn't handle multiple nesting or (for reasons I don't
understand) handle a single pair across multiple lines. Where can I
find more information on the 'swallow' bit?
I am in the midst of creating a Tcl mode for Textmate. I was wondering
how I would do the following in the language code:
mk::create
Often in Tcl a namespace will be like the above a word followed by a
:: followed by a word. How would I get Textmate to color the entire
"mk::create".
Just found out about Textmate while looking at the TurboGears
framework, which also got me interested in Python. : )
Robert
I recently updated to build #513 and suddenly snippet insertion on
tab no longer works. Previously, I was able to type "script" and then
hit tab to have a chunk HTML/JS inserted... No matter what text I try
to type-tab, snippets are not being inserted (img, meta, title,
table, etc.).
Any ideas?
Thanks,
Scott
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
\ Scott Upton
\ uptonic
\ Real simple web design
\
\ http://www.uptonic.com
I know that tabs show up if I have a "project". However, for
individual files it seems (or I haven't found the setting) to open
each new file in its own window. Is there a way to set it so that
Textmate will use tabs by default?
Robert
Hi,
I was just reading through the blog post about the switch from the
'tm' command line tool to 'mate' and noticed the mention of the
subversion integration! Nice! Well, it would be :) For whatever
reason, it's not functional for me. I'm receiving this error when I
invoke any of the Subversion dialogues:
/bin/bash: line 1: require_cmd: command not found
and/or:
sh: line 1: svn: command not found
Anyone seen this?
Thanks!
Stephen
I don't know when it happens, but it seems to just kick in after a
while. Anyway, some keyboard shurtcuts stop to work, and when I go in
and try to reassign them just to see what happens, a "cirlce" is
inserted behind the shortcut, a picture will say more than I ever can
explain.
http://hem.bredband.net/perihelion/textmate.png
it seems my keyboard sends in this very weird thing, which only
affects textmate. I have version 1.17beta (the latest beta released a
while back, not the latest latest, and I do nothing cvs fancy or
anything, I download from the main page every once in a while).
I run tiger 10.4.2, on a powerbook, but I have an old "pc" ps/2 type
keyboard hooked up through a ps2->usb converter.
Since you'll probably ask me this, I'm gonna try with the built in
powerbook keyboard now.
The powerbook keyboard seems not affected, and when I pull out and
replace the usb cable it seems the problem disappears. Interesting to
note is also that
<div></div>[enter]
does not produce
<div>
|
</div>
but instead
<div>
</div>
so in the end, I guess it's related to my converter somehow, but now
you all know for the future :)
Andreas
- Find in selected folders from project drawer
- Run TxMt commands from terminal through mate (would make using TxMt
with stakeout a lot more powerful)
What do you think Allen?
Best regards,
Ben
I just upgraded TextMate today, but it didn't have the usual includes
(the service and the bin/ applications). Now running "tm" says, "tm:
you need to update this helper tool (server at version 2)." How can
I get the latest version of these extras?
James Edward Gray II
Hi,
I'm trying to run an "svn up" on my checked out bundles. I'm getting
this error:
subversion/libsvn_subr/utf.c:453: (apr_err=22)
svn: Can't convert string from native encoding to 'UTF-8':
subversion/libsvn_subr/utf.c:451: (apr_err=22)
svn: HTML ?\226?\128?\147 4.0 Strict
It did work a few days ago.
Thanks,
-Eric
Does anyone know if its possible to get the full path to the current bundle
within a command?
Many Thanks
Chris Jenkins
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi everybody,
I've just upgraded to revision 513, and I've noticed that qq strings in
Perl are no longer being recognised properly. Not just my beloved
qq||, but also qq(), qq{} and for that matter qw().
The "Show scope" command from the lovely new Textmate bundle simply
shows "source.perl" here, so I guess there's something wrong with the
definitions in the language bundle for Perl, but I can't see anything
obvious here.
Is this affecting anyone else?
Cheers,
Andrew.
--
::
article seven Andrew Green
automatic internet andrew(a)article7.co.uk | www.article7.co.uk
Hi,
I am trying to adjust keybindings for text movement, and have issue
with my custom ^j shortcut (yes, Vim related ;-). In Pages and Mail
this shortcut works just fine, but in TextMate it is bound to
"Reformat and Justify" menu item. Therefor I added TextMate to
Keyboard shortcuts preferences pane, and assigned @^J to it. It works;
the new shortcut appears in the menu and I can use it. But the old
shortcut (^J) is also still bound to "Reformat and Justify", so it
doesn't work for the text movement.
Any ideas how to fix it?
Thanks!
--
Ksenia
On 5 Oct 2005, at 15:23, Neil Lee wrote:
> So, and I'll say it again, documentation! Give me a printable set
> of docs that I can take with me on the metro and I'm yours for life.
OK, here's a small start that will hopefully get Neil and others
going until something better comes around. ;-)
-- Unzip the attached "Create TextMate Print
Documentation.tmbundle.zip" file
-- double-click the "Create TextMate Print Documentation.tmbundle"
and TM will install it for you directly
-- Restart TM
-- Go to Automation -> Run Command -> Create TextMate Print
Documentation -> Create Print Documentation
-- Open Help -> TextMate Help and then you should see a "Single Page
Print Version" link in there. Click on it and print.
Quick hack that works great on my system, and should hopefully work
just as well on other systems.
Alternatively, you can Cmd+Click the TM icon in the Dock, right-click
the TM app icon, and select "Show Package Contents", Navigate to
Contents/Resources/English.lproj/TextMate Help Book/ and drop the two
documents inside this .zip file in there. But then they would be
replaced each time you update the main TM app.
PS. The Ruby Code Quality Control Committee should probably NOT look
too closely at my code in the command ;-)
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Hi,
sometimes I test anything (like html page and perl scripts) writing
directly on Desktop, first to pass them in the correct localhost web
site folders, so I've set Apache to handle also $USER/desktop as
localhost directory.
I try to put in bundle editor, html this line:
open `echo $TM_FILEPATH | sed "s|.*/$USER/Sites/\(.*\)|http://
localhost/~$USER/desktop/\1|"`
but it doesn't work
Please, there is a solution?
Many thanks in advance
Salvo
Hi. Sorry if this was discussed or is obvious. I noticed that
Javascript files by default are highlighted as HTML, which means they
get no highlight if the file contains just Javscript code. And what
happened to the Java syntax bundle? I have a checkout of the latest
Bundles from Subversion. I don't know when the bundle dropped off but
it used to be there.
thanks, K
I didn't know where else to ask this question. If I purchase a single licenses for TextMate can I use it on a Desktop and a Laptop? (As long as I'm not using them at the same time?) I ask this question because I believe it was true with the Office 2004 Student and Teacher Edition license.
Hi all,
The following folding patterns for javascript will:
1. fold any line that contains a function, such as:
- object literal style function declarations (ala rails prototype)
- lambdas that you pass to your js implementations of map, select
and inject
2. not think single-line functions mark a fold start
foldingStartMarker =
'^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$';
foldingStopMarker = '^\s*\}';
Hope you find it useful.
I tested it against a dozen or so js files of varied convolutedness and
was quite satisfied, but if you find something wonky let me know.
Hi, i've got a project with various file, and obviously i have to jump
from one to another any time. The problem is that any time e click on a
file TM open a new tab, usually that's great but after sometimes i have
a lot of tab open and TM becomes slow.
This is the question, is it possible to disable tabview for some project
?
--
Thanks for the great works! this is a great software and it grows
quickly.
Fabio
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
Hi,
Would it be possible for the 'install & relaunch' feature, after
TextMate has updated itself, to reopen projects/documents that were
open before the update happened? OK, it's pure laziness (I just have
to switch back to iTerm and type 'e .' in the right terminal), but it
would make the update feel more seamless.
Regards,
Graeme.
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
Hi,
Auto-update works fine, except one point : when launched from a
non-admin account, the installation fails (Error message : "Error :
installing update"). When launched from an admin account, it works, but
at no moment asks for login and password.
Well, it's not really annoying, but perhaps a dialog box could be
added to ask for login and password when update is launched from a
non-admin account?
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
1. better progress indication would be great, one of those spinner
things below the buttons would do it. Also a way to abort an ongoing
search would save me so many force quits.
2. I'd love to have a file path regexp filter, so, say, it only
searches in files matching \.rb$ (I suppose glob would be nice for such
simple cases, but not at the expanse of the ability to use regexps when
needed, i think)
I'd love to be able to fold comment blocks. (I'm thinking ruby, but
really, any language)
I suppose it'd be possible with a simple modification somewhere in the
language bundle. Any pointers?
I'm sorry if this is a totally obvious question, but I'm trying out
Textmate after years of using BBEdit and I'm a bit lost.
I can see that there are built-in templates for XHTML documents, and
in the bundle editor I can apply a quick-key to, I assume, create a
new template, but pressing this key does nothing.
The whole concept of bundles and templates is really confusing. All I
want to do is create a new document via quick key with some pre-
determined text in it - how do I do this? Do I actually need to use
command line commands to do this?
Thanks,
Neil
--
Slumming at the BeatnikPad : http://www.beatnikpad.com/
The person you love is 72.8% water.
I'm subscribed to http://macromates.com/textmate/changelog.rss -- but
couldn't download the latest from the provided link until I changed
the suffix to .tbz instead of .zip. HTH.
--
Ryan Platte
Even though the language says HTML, all snippets are actually
XHTML ... so I was just curious about the rest of the HTML bundle-
thingies, everything seems to be HTML compatible, right? It's just
that the "code"-snippets happen to be XHTML?
So if I just edit them, I'll be HTML set?
Andreas
Is there a reason why command+t and shift+command+t don't work the
same way?
It may be bad coding to have lots and lots of symbols in one
document, but html files (and some js files) can get big and I'd like
a good way of quickly navigating around the symbols.
Andreas
In 499, if I try to check for updates I get the error:
Remote file or URL was invalid
Neil
--
Slumming at the BeatnikPad : http://www.beatnikpad.com/
The person you love is 72.8% water.
Hi all,
I am now getting the RSS feed on the changes and getting the new
versions from the in-app update. This is good. I noticed that one
change is that the command line utility has been renamed from "tm" to
"mate" to prevent what I have already done too many times! (I guess
that rm is just too ingrained into my fingers to learn tm.)
Thanks for this change and how do I get the new script? Is it the
same as tm and I should just rename tm? Or, is it a new script that I
should install?
Thanks,
-Eric
I've got an idea to make it possible to have a "Send to TextMate" and
"Edit in TextMate" in a browser window, the first being to send a
text block to TextMate the second to send text and allow saving the
changes back to the server. Trying to think of how best to make this
possible. So far I've got three possibilities:
1. A browser plugin that takes control of a new MIME type and when a
link is clicked the mime type is sent and the plugin saves the file
to /tmp and then opens it with a helper application that takes over.
Issue being the complexity of using a plugin and compatibility
between browsers. Also that it takes changes on the server-side in
reguards to MIME types.
2. A placeholder browser plugin that does nothing, but can be tested
for. A protocol helper link is placed on the page by a script if the
plugin is found. The helper application takes over when the link is
clicked (like a mailto link).
3. Simply have a protocol link that's broken for non Textmate users.
Anyone else have any slick way they can think of handling this?
Possibility one has the advantage of being what mediawiki uses for
this, and it could be supported pretty easily, on the flipside it's
also the most complex option, and pretty invasive really. I'm sort of
leaning toward #2 at the moment.
>
>>>> I'm getting this error after copying the new command line tools to /
>>>> usr/local/bin:
>>>> tm: you need to update this helper tool.
>
> This is actually quite strange, since the protocol used to
> communicate with TM and the tool is at the same version as it has
> always been (so no combination of TM and the tool should give this
> error).
>
> The only reason I see is that the TM started actually predates
> implementation of the protocol. Do you keep old versions of TM
> somewhere on your disk (even the trash counts here)?
Nope, no old versions on disk. However the issue mysteriously
disappeared when I checked just now.
*crosses fingers*
- Ben
When I select a result in the 'Find in Project' panel, then scroll a
bit around in the document window, and select the same result again
in the 'Find in Project' panel, nothing happens. I have to select
another entry first for something to happen.
Gerd
Hi all,
I'm very new to TextMate and I'm getting seriously hooked. I was
wondering about the purpose of the list. Is it just for feature
requests or is it also where I can ask usage questions?
I teach programming and use lots of languages. I have been trying to
find something that is not Eclipse and is not vi. I have been using
jEdit for a long time but it is starting to go dormant as the creator
moves on to other parts of life.
Thanks for a great new product and keep going!
-Eric
With relative frequency, I have to open a bunch of related files with
similar name. Before the latest betas, I could just hit cmd T repeated
times and open each at a time.
Now that TextMate clears the search to display the last opened items,
it's a bit more cumbersome to do it. So maybe TM could allow multiple
selection in the Go To File window, so that I can open them all at
once. (via both mouse and keyboard, prererably) What do you think?
if you put an inline comment in PHP on the first line of a function
declaration, something like that for instance:
function thumbnail_table($name='off', $size='off', $dimensions='off')
{ // values - 'name' 'size' 'dimensions'
it will mess up the little arrow thinggy for text folding.
.........................................
m i n i m a l d e s i g n
244 Fifth Avenue - Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: work(a)minimaldesign.net
site: http://minimaldesign.net/
If you don't follow my blog, I'd suggest reading this:
http://macromates.com/blog/archives/2005/10/02/self-updating-build/
Basically I now encourage using nightly builds (instead of just
betas), which should be much easier now that TM checks for updates
itself, and handles the updating automatically as well.
Hi,
When trying to download the 488 nightly build from
<feed://macromates.com/textmate/changelog.rss>,
<http://macromates.com/textmate/build/TextMate_r488.zip>,
we encounter a "not found" error :
"Not Found
The requested URL /textmate/build/TextMate_r488.zip was not found on
this server."
Is it a new feature? ;-)
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
When I'm writting ruby code, I stumbled across Cmd-/, which
comments/uncomments out the selected blocked of code.
Where are all these hidden key-binding documented? It's not in the
KeyBinding.dict that shipped with 1.1b17.
If I try to comment out the whole function below, it'd instead
uncomment the existing comment within the block. I'd rather have
Cmd-/ always do comment-out, and Cmd-Option-/ always do the uncomment.
Can I override the key-binding for the default comment/uncomment
behavior?
def foobar
# comment inside function body
do_something
end
Thanks for all your hard work.
Chris
> The version number is in the actual output window.
I see no version number. Screencap attached.
> Do you see the output in this same window? If so, does it state the
> version number as 1.2?
>
> If you do get the window, and you are at v1.2, then it might be
> CocoaDialog which is missing. To test this, try running: type -p
> CocoaDialog«ctrl R» in an empty buffer.
CocoaDialog seems to be there.
> What happens then instead?
outputs
this is a test
nil
end of test
> Does it Run your script as shown on my
> grab?
Nope.
> is your RubyMate at v1.2?
Uhh... not sure :)
Got a link?
Ben
> > Works for me -- using latest build (http://get.textmate.org/):
> >
> > cmd N (new buffer)
> > Paste previous 3 lines
> > option-ctrl-shift R (switch to Ruby)
> > cmd R (Run Ruby)
> >
> > And this is what I see:
> >
> >
> > <pastedGraphic.png>
> >
> > Entering a string and pressing return outputs the strings and
> finishes the program.
> >
> >
>
> The latest build works! Thank you.
>
> Bill
Latest build (478) does not work for me with this. Cheers,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
FWIW, I would request that core JS methods be kept separate from HTML-JS-DOM specific bindings.
To be clear, clientX, et al are not in the core JS language, but rather are properties of objects exposed by HTML user agents. For a list of ECMAScript-specific objects, properties and methods, see
http://phrogz.net/ObjJob/objects.asp?langID=4http://phrogz.net/ObjJob/properties.asp?langID=4 <http://phrogz.net/ObjJob/properties.asp?langID=4http://phrogz.net/ObjJob/ob…>
http://phrogz.net/ObjJob/methods.asp?langID=4
________________________________
From: textmate-bounces(a)lists.macromates.com on behalf of Andreas Wahlin
Sent: Mon 9/19/2005 9:07 AM
To: TextMate users
Subject: [TxMt] addittion to JavaScript bundle
While poking around there I found some other things that should be
added (?)
clientX,clientY,scrollLeft,scrollTop,style
for support.constant.js
appendChild
for support.function.js
and support.function.event-handler.js should, I think, be made to
ignore case.
It would be cool if the one thing after styl. could be somehow me
matched to the css rules ...
er ... somethnig like this?
{ name = "support.constant.js";
begin = "\\.\\b(style)\\.";
end = "\\s*";
captures = { 1 = { name = "support.constant.js"; }; };
patterns = (
{ include = "#tag-stuff"; },
{ begin = "\\.";
end = "\\s*";
patterns = ( { include = "source.css"; } );
},
);
},
Andreas
______________________________________________________________________
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