The following process will give you a command which you can run to
help debug commands:
1) Create a Command in the Bundle Editor called "Command Output"
2) Paste the following script into the Bundle Editor:
#!/usr/bin/env ruby
print '<pre>'
print while gets
print "\n"
print "------------\n"
print "END OF STDIN\n"
print "------------\n"
print `env | sort`
print '</pre>'
3) Set Input to Selected Text or Scope
4) Set Output to Show as HTML
5) Set the scope to whatever scope you want to use in your command
Try it out. It will dump the input followed by a divider followed by
the entire environment supplied to the command.
I used this to determine what TextMate was supplying to the Command I
was writing.
Hi,
as you know TM 2.0 will be Leopard only. Fine. But what about DIALOG2?
Should DIALOG2 also compiled as Leopard only?
With the new SDK 10.5 you have some "tiny" improvements to enhance
DIALOG2.
Regards,
--Hans
Hello,
I have tried to figure out why pdfsync was not working with my (large
and multiple file) thesis tex project. I figured out, that pdfsync
has to be included from the main tex file and NOT from a stylefile
(i.e a custum made thesis.sty that includes pdfsync...). This is not
a big deal, but maybe it could be fixed so that texMate.py would find
pdfsync there too...
Thanks
Chris
Hi,
the new DIALOG2 allows to display an inline menu with headers like:
Nouns
table 1
tree 2
vase 3
Verbs
count 4
drink 5
eat 6
Very nice! But it could occur the following case:
Nouns
drink 1
tree 2
vase 3
Verbs
count 4
drink 5
eat 6
If I now choose "drink" I get:
<dict>
<key>selectedIndex</key>
<integer>6</integer>
<key>selectedMenuItem</key>
<dict>
<key>title</key>
<string>drink</string>
</dict>
</dict>
But I do not know which "drink". Ok, I also got selectedIndex 6 and it
would be doable to figure it out. To simplify it I changed the code
slightly to output this:
<dict>
<key>selectedIndex</key>
<integer>6</integer>
<key>selectedMenuItem</key>
<dict>
<key>header</key>
<string>Verbs</string>
<key>title</key>
<string>drink</string>
</dict>
</dict>
if there is an header given. If no header is found you will get the
"old" dict.
##############
An other very tiny problem I encountered is the following:
I would like to have this menu:
Offset
20
10
0
-10
-20
The negative numbers are interpreted as a separator because the
strings begin with -. One could easily fix it by using
"kMenuItemAttrIgnoreMeta". I did this, but this could be discussed, of
course.
Here's the code:
Cheers,
--Hans
Hi everyone,
the Koma-script classes offer a ”\minisec" command for simple sub-
headlines which do not appear in the TOC.
At the moment, these minisecs appear in the Symbol List left-aligned,
which is not so nice.
A simple fix for that is adding the following line to the "Symbol
List" bundle item so that the minisecs appear idented:
s/^\\minisec\*?(?:\[[^]]*\])?\{(.+)\}/ $1/; #
\minisec
I'd like to propose to add this to the standard bundle but I would
like to leave this task to the Knowing Ones ...
Best regards,
Matthias
--
Matthias Damm - mad(a)macpla.net
GPG key: http://macpla.net/MatthiasDamm.asc
GPG fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
Stoppt die Vorratsdatenspeicherung! - http://www.vorratsdatenspeicherung.de/
Hi there,
I have been to Ryan van Barneveld's Blog downloading ie-preview.app in
order to install it on my Leopard/Textmate/Parallels set up.
(http://www.ryanvb.com/ie-preview/)
I cant manage to do properbly as I dont know how 'activate' the
sharing folders for windows. I cant find such an option (Windows
Sharing) in the preference pane.
Quote from his website:
-----------------------------------
1) In the Sharing panel of System Preferences,
turn on Windows Sharing and note your Computer Name
2) Be sure to test your Windows Sharing by going into
Windows XP through Parallels, opening a file explorer
window and typing your computer name into the address
bar preceded by two backslashes.
eg. type \\MyMacBook, hit enter and you should see your Mac files
-----------------------------------
I also dont want to mess up sharing options - not knowing what to do
exactly but only trying - in order to keep my laptop 'privat' in
public places.
Could anybody help please?
------------------------------
Thanks in advance!
Dennis
hi, I'm a bit confuse with the shell command to allow preview HTML
page with browser instead of Web Preview. I'm not familiar enough with
Terminal to "experiment".
when I paste:
sh ~/Documents/Scripts/browser.sh
... I go nowhere.
I would greatly appreciate someone's help on that, including the
command line to get a choice between Safari or Firefox.
--
cheers
Is there a way to get TextMate to auto pick the file language based on the
file path?
As an example, I have both matlab scripts and objective-c files each with
".m" extensions. When the path is .../matlab/... I would like them to use
the Matlab language bundle otherwise use the Objective-C language bundle.
When I used to use emacs, I had a load hook that was able to parse the file
path and use the correct mode.
Incidentally, I've added "firstLineMatch = '^[#%]+\s*.*[Mm]atlab.*';" to the
Matlab language which works if I start the file with a '% Matlab' comment -
this works for files I write, but not ones others write. Maybe there is a
way to have a "filePathMatch = '.*\/matlab\/.*'" (or equivalent) in the
language?
Thanks,
-- d
--
View this message in context: http://www.nabble.com/Language-based-on-path-tp16308189p16308189.html
Sent from the textmate users mailing list archive at Nabble.com.