[TxMt] Bundle newbie and erlang
Andrea Crotti
kerny404 at gmail.com
Sat Nov 1 13:32:04 UTC 2008
One of the things I love most of textmate is the possibility of many bundles
to search for documentation with a simple ^-H, it's fantastic.
Now I'm studying erlang and I didn't find this functionality in the bundle,
then I made this
#!/usr/bin/env bash
OFF=$TM_CURRENT_WORD.html
echo $TM_CURRENT_WORD | /usr/bin/grep ':'
if [[ $? == 0 ]]
then
MOD=echo $TM_CURRENT_WORD | cut -d ':' -f 1
FUN=echo $TM_CURRENT_WORD | cut -d ':' -f 2
OFF="$MOD.html#$FUN"
fi
ADDR="http://www.erlang.org/doc/man/$OFF"
curl $ADDR
Know it's almost working, but if I give something like
lists:seq it doesn't go to the seq function, because I should also know the
arity of a function, and how to get it??
When I've got something I think it could be useful I can propose in the
developer section?
Thanks
--
View this message in context: http://www.nabble.com/Bundle-newbie-and-erlang-tp20279615p20279615.html
Sent from the textmate users mailing list archive at Nabble.com.
More information about the textmate
mailing list