[TxMt] tm_dialog inline menu in BASH

Hans-Joerg Bibiko bibiko at eva.mpg.de
Fri Jul 20 13:17:00 UTC 2007


Hi,

I have a tiny question:
How can I invoke an inline menu by using 'tm_dialog -u' from a  
tmCommand written in bash?

I'd like to popup an inline menu à la Ruby

	require File.join(ENV["TM_SUPPORT_PATH"], "lib/ui.rb")
	words = STDIN.read().split("\n")
	print words[TextMate::UI.menu(words)]

but using 'tm_dialog -u' command.

OK. I can embed Ruby-code in my Bash script, but it should be  
possible to use only

tm_dialog -p "{???}" -u

I have no problems with for instance:
PLIST=$(tm_dialog -mc -p '{title="Hallo";}' RequestString)

I tried to write a old-stylish plist using menuItems, title=, etc.,  
but up to now I couldn't find a solution.

Thanks in advance for any hint,

Hans


More information about the textmate mailing list