Hi there,
is there any way of populating a dropdown with a Hash/Array from Ruby,
using tm_dialog?
I'm using a custom Nib, but I don't have too much experience with
Interface Builder.
Dummy code:
categories = ["bar","baz"]
dialog = ENV['DIALOG']
plist = {
'title' => "Add your title",
'category' => categories # How do I use this here?
}.to_plist
str = `#{e_sh dialog} "#{NIBS}/new_message.nib/" -m -p #{e_sh plist}`
Any hints will help :)
Also... is there any way of calling tm_dialog to load a custom Nib
using the Ruby wrapper in dialog.rb?
Thanks in advance!
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Thanks for yours answers,
I didn't know the Select Bundle Item function, and even fewer the key search.
So I've deleted the shortcut for the declaration "try/catch" and the wrapping
work in PHP section now.
PS : Yes, it is ⌃⇧W ;)
Hi there,
today, I was doing the next step in my investigation of why
TextMate's Blogging Bundle doesn't really work together with
Serendipity. This time, I was after the strange effect around the
Date header: Whenever that header is present in the document, it
causes s9y to set the creation date to the beginning of the epoch.
Aside the fact that it changes the creation date in s9y which is not
visible anywhere in the tool besides in the sorting order of entries,
which is a flaw in s9y (it's impossible to change the creation date
via s9y's interface except by... well creating the entry), this looks
like a bug in MovableType actually.
Don't ask. Read on.
dateCreated is supposed to be passed around as dateTime.iso8601 which
in turn is defined as <year><month><day>T<hour>:<minute>:<second>
(time in GMT). This is what s9y uses and this is what the rest of the
world uses.
Except MT, that is.
Even though I searched, I found no clear definition of how the date
must be formated. In one piece of their sample code, I found this
though:
<member>
<name>dateCreated</name>
<value>
<dateTime.iso8601>
2005-12-05T21:38:47Z</dateTime.iso8601>
</value>
</member>
.. which is wrong (note the dashes in the date).
The blogging bundle defaults to the mt-mode and tries to recreate
this flawed format (parse_post in blogging.rb - I wonder what the
other T at the end does though) which in turn causes s9y to fail to
parse the date correctly and set the time stamp to 0 (which isn't
right thing to do, but I'll report that to their forum).
Manually setting TM_BLOG_MODE to s9y for example fixes the date
problem, but makes one lose comment-toggling-functionality (the ping
one currently isn't implemented on s9y's side, but I intend to change
that with an upcoming patch).
So I created the attached patch bb_s9ydate.diff, which adds a proper
s9y mode which basically means it makes blogging.rb use the default
date handling, but still provide the comment-toggling features.
In addition to attaching the patch, I've also uploaded it here:
http://www.lipfi.ch/bb_s9ydate.diff
Please consider merging this one too as that date-thing sucks in
particular when using TextMate to edit s9y blogs :-)
Now I'm off to bug the s9y people about the creation date-problem and
about the support for toggling pings via the RPC-Interface :p
Thanks for your patience with reading this novel here :-)
Philip
Just to say that those who are waiting for an actionscript 3 bundle, I
started one.
You can find more information on http://4d.ratubagus.net/ .
This bundle is just started, so many things will be added week by week ...
Since i'm new to textmate, even i read a lot on the mailing list , the
wiki, the book ...
i've still many things to learn and i'm open to suggestions .
enjoy
Joachim
Yeah I checked this. Still no luck. Take a look, see what you think.
--oliver
On Apr 2, 2007, Thomas Aylott wrote:
> Make sure you call the preference as it is named on disk.
> Renaming a preference in the bundle editor doesn't actually change
> anything on disk.
> thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Hello
Since the last realease of Textmate,
when I'm writing between echo's comas, the shortcut ^majW make "try-catch"
expression, I would like it wrap selection in an Open/Close tag as in HTML
bundle. How can I do this change ?
Thanks a lot
Hi,
I've been trying to reproduce the steps in the tm_dialog screencast, but failed for some reason:
If i call tm_dialog on my test nib file in the Terminal, I get this message:
tm_dialog: you have updated the Dialog plug-in to v8 but the tm_dialog tool is still at v5
I'm not quite aware of what I've updated, it's all happened automatically as far as i can tell.
Looking at the version, it seems to be "tm_dialog r6545 (Feb 12 2007) ", or possibly "tm_dialog r6021 (2006-11-16)" if I run tm_dialog or tm_dialog_v5 in Textmate (don't know whether I'm supposed to have two of these things installed?)
How can I fix this problem?
Many thanks
baptiste
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Is there a way to do nested transformations in snippets?
I want to do something like:
class FooFields:
[...]
foo_form = [...]
where the Foo is easily changed. Fields should be converted to form
and the whole thing should be converted from CamelCase to
under_scored.
I can do the underscored convertion, but I can't work out how to do
another search and replace as well.
I though this might work:
class ${1:FooFields}:
[...]
${2:${${1/Fields/Form/}/([a-z0-9])?([A-Z])/(?1:$1_)(?2:\l$2)/g}} = [...]
Where the first regex is input to the second regex. But it doesn't
work. Instead it doesn't seem to recognise the regex as a regex at
all and outputs:
class FooFields:
[...]
{1/Fields/Form//([a-z0-9])?([A-Z])/(?1:FooFields_)(?2:\l{1/Fields/Form/)/g}}
= [...]
Whilst writing this I have realised that I can just do:
class ${1:Foo}Fields:
[...]
${2:${1/([a-z0-9])?([A-Z])/(?1:$1_)(?2:\l$2)/g}}_form = [...]
Which is good enough as a solution, but I'd still like to know if
there is a way to solve the problem using nested regexs?
Many Thanks
Ed
Newbie here, please excuse the apparent non-TextMate related
question. Has anyone seen a bundle or suggestions on using tidy (or
something) to convert old style HTML to newer transitional XHTML
without screwing up embedded PHP (or other) code? It seems that by
default tidy can really fowl up embedded PHP structures. I have a lot
of old PHP-based documents that I'd like to get somewhat brought up-
to-date.
Thanks,
Ron
*******************************************************
* Ron Patterson, Email: rpatter(a)asd20.org *
* Web Services, Phone: 719.234.1707 *
* Academy School District 20, FAX: 719.234.1706 *
* Web Site: http://www.asd20.org *
*******************************************************
Hi every one,
I haven't been able to find any post about the topic, but I must admit the
number of post containing command and completion is indeed quite impressive.
Here is my problem. I'm French and I'm using an azerty keyboard. I can't use
the default (command - option - }) “LaTeX command completion based on
current word” shortcut. On an azerty keyboard, please note it must be typed
(command - option - shift - ‘)’) and that the ‘)’ is located two keys left
from the delete key, next to the upper figure ‘0’. Worse, even when I try to
change the shortcut to (command - option - shift - ‘)’), it doesn't work. In
fact, it looks like the shortcut doesn't trigger a thing.
I currently worked around the problem using (command - control - option -
‘)’) 4-fingers “shortcut”, but I'd like to switch back to normal. Do you
have any idea of the reason why (command - option - ‘)’) does not work? I've
been looking for such a shortcut in TextMate but haven't been able to find
one.
Thank for your help and my appologies for the potential bad spelling.
--
View this message in context: http://www.nabble.com/LaTeX-command-completion-shortcut-tf3506038.html#a979…
Sent from the textmate users mailing list archive at Nabble.com.