Hi,
if I have a nib with a NSTextField I start the dialog and type e.g.
German umlauts or Japanese etc. the STDOUT output is a '\U####'
sequence.
>{ignCase = 1; regExp = 1; searchString = "\U00f6\U00e4\U00fc
\U00blabla"; }
Would it be possible to output the content à la
NSFileHandle *fh = [NSFileHandle fileHandleWithStandardOutput];
if (fh) {
[fh writeData:[output dataUsingEncoding:NSUTF8StringEncoding]];
}
??
Or are there any disadvantages with that?
Best,
Hans
I just started watching the screencast about tm_dialog. I tried
running the command Allan did 'tm_dialog', but I just got a giant
tooltip complaining about not having an XCode project or something.
Even trying just a echo "hello" gives an error. (being a tooltip I
can't copy it!) - Ah.. good old screen grab comes to the rescue:
/Library/Application
Support/TextMate/Bundles/XCode.tmbundle/Support/bin/find_xcode_project.rb:27:in
`chdir': can't convert nil into String (TypeE
...
Didn't find an Xcode project file
You may want to set TM_XCODE_PROJECT.
Help?
Thanks!
jt
Steve,
Thanks for the input! This has now been fixed.
- Alex Ross
On Oct 29, 2006, at 7:46 PM, Steve Lianoglou wrote:
> Hey there,
>
> I noticed there's been some activity updating the Python bundle and
> language defs (thanks!). The new language grammar is flagging
> something as invalid, but I'm pretty sure what I'm doing is kosher.
>
> Its catching my return statement that returns a tuple that I'm
> defining (and surrounding) by parenthesis at the time of return.
>
> A trivial example:
>
> def something():
> one = 1
> two = 2
> return (one,two)
>
> It looks like there are three scopes that are being assigned here
> (on the return statement, that is), which I don't think should
> matching here:
>
> invalid.illegal.name.python
> entity.name.function.python
> meta.function-call.python
>
> I just wanted to bring this to your/someone's attention. Thanks for
> taking the time to make the Python bundle better ... if I recall
> correctly, most everything used to be in just a source.python
> scope, so the new work is much appreciated.
>
> Thanks,
> -steve
>
> ______________________________________________________________________
> 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
Hi,
is there any way to distinguish what button was pressed if I have more
of them?
E.g. you want to ask the user; two buttons 'Yes' and 'No'. How can you
return that?
Thanks,
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
First, thanks Haris for beginning to incorporate the new tm_dialog
into the LaTeX bundle. But I ran into trouble with the revised Insert
Environment command. Log for r5765 reads:
> Enhanced the Insert Environment command to use the new tm_dialog
> menu. Now when you trigger it with no current word, a menu of all
> environments defined in the LaTeX Config file will show up.
Cool feature! But when I tried it I get the the following error:
tm_dialog: server version at v3, this tool at v4 (they need to
match)
/Library/Application Support/TextMate/Support/lib/dialog.rb:
19:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filemenu'
from /tmp/temp_textmate.eSpoUX:16
I have updated both the Bundles and Support directory and am using
the latest 'cutting edge' version of TM.
Thanks again. Best, Mark
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a case, where I would like to retain the Directory Name of the
File being dropped.
In that case, the TM_DROPPED_FILEPATH variable has the following value:
/Users/username/Sites/siteroot/public_html/textpattern/_templates/articles/article/60.an-example-article.txaml
I want to retain the last directory name, in this case: article.
I tried :
section=`echo $TM_DROPPED_FILE_PATH | perl -pe
's/(.*)?(\/)(\w+)(\/)([\d+]+)(\.)(.*)$/$3/g'`
echo "$section"
But the variable doesn't echo anything.
I tested the replacement pattern with find and replace and it gives me
what I want.
What am I doing wrong here ?
Any help appreciated.
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFRl9B8tSzPOYuZvQRAsvoAJ9AvdJnQlXWIgOEtD1ppcNWAF/1IQCcC/jK
UbfVsF2g0QZwSwMx9WnqKRw=
=qDyr
-----END PGP SIGNATURE-----
Is it possible to use "\z" in the Language Grammer? I'm thinking like
this:
name = 'meta.test';
match = '^(\t)(.+)(\n|\z)';
captures = {
1 = { name = 'whitespace'; };
2 = { name = 'paragraph'; };
3 = { name = 'end-of-line'; }; }
I know I can't currently do this, is it because I don't understand
"\z" or because TextMate doesn't support it? If TM doesn't support
it, why? (I think this would be really useful)
It would seem that the HTML bundle now checks to see if a document
has a doctype of XHTML and if it doesn't it defaults all tags to
their HTML counterparts. This would be great if I didn't spend all
day editing templates in XHTML that aren't always the portion of a
page that contains the doctype.
Could someone possibly point me in the right direction to turn off
the check or default to XHTML instead? I would appreciate it
immensely. :)
I just noticed this a second ago and suspect I have a bunch of code I
need to go through to remove the <br> tags and replace them with <br />.
Jamie
_______________________________________________________________________
Email: jamie(a)methnen.com
Homepage: http://www.methnen.com
"And I always go to pieces. And I have it in my mind, that the sky is
tall and heavy, when I could be brave."
-Karen Peris (Brave)
"I want to find where the maid in the street is pouring her wine,
I heard she takes you in and gives you the words you need said.
If you'll be her brother, she'll kiss you like a sister.
She'll even be your mother, for now."
-Matt Slocum (Sister, Mother)
"And we are drowned."
-Annie Dillard (Tickets For a Prayer Wheel)
_______________________________________________________________________
Hi,
just saw the tm_dialog screencast: http://macromates.com/screencast/
intro_to_tm_dialog.mov
just a quick note to say that I'm amazed at tm_dialog... Well,
tm_dialog isgreat :), but really it's more the power of the Interface
Builder, what you can do without coding that got me of my feet.
really amazing.
Best regards, (and now waiting eagerly for the next tm_dalog
screencasts :))
--
Pedro Melo
JID: xmpp:melo@simplicidade.org
Hi,
first of all tm_dialog is ... I don't find words for that. Thanks A
LOT!!!!!!
tm_dialog will revolutionize my work ;)
----
I just played with it to use it with Hypersearch.
I followed your instructions but I have a tiny problem:
I created a nib test1 with an TextField and two check boxes.
Everything is fine except there is no return for the TextField. Only
my checkboxes appears.
If I add a second TextField to the nib then the value of the FISRT
TextField is returned but unquoted.
What I did wrong? For checking this I attach two small nibs 'test1'
with one TextField and 'test2' with two TextFieldes.
Here's the terminal output:
l:~/Documents Bibiko$ tm_dialog ~/Documents/test1.nib
{sw1 = 1; sw2 = 1; }
l:~/Documents Bibiko$ tm_dialog ~/Documents/test2.nib
{searchString = aaa; sw1 = 1; sw2 = 1; }
I couldn't find my error.
I use TM Cutting-Edge build 1305 downloaded one hour ago.
Thanks in advance,
Hans