Sync bundle with TextMate repo

This commit is contained in:
Tom Robinson
2009-09-07 18:53:59 -07:00
parent 98e18340b7
commit f7c00df9a9
28 changed files with 1178 additions and 18 deletions
@@ -0,0 +1,36 @@
EXTENSION="$1"
CURRENTDIR=`dirname $TM_FILEPATH`
if [ -z $TM_PROJECT_DIRECTORY ]; then
L=$((${#CURRENTDIR}+1))
MENUITEMS=$(find -s "$CURRENTDIR" -name "*$EXTENSION" | perl -pe "s/^.{$L}(.*?)$/{title=\"\$1\";}/" | paste -sd ',' -)
[[ -z $MENUITEMS ]] && exit 200
"$DIALOG" -u -p "{menuItems=($MENUITEMS);}" | perl -e 'undef $/;$a=<>;$a=~m/<key>title(.|\n)+?<string>(.*?)</;print $2;'
else
FILES=$(find -s "$TM_PROJECT_DIRECTORY" -name "*$EXTENSION")
FILES=$(echo "$FILES" | perl -pe "s!$CURRENTDIR/!!")
if [ "$CURRENTDIR" != "$TM_PROJECT_DIRECTORY" ]; then
CURRENTDIR=$(dirname $CURRENTDIR)
REPLACE=""
while [ "$CURRENTDIR" != "$TM_PROJECT_DIRECTORY" ]; do
REPLACE="$REPLACE../"
FILES=$(echo "$FILES" | perl -pe "s!$CURRENTDIR/!$REPLACE!")
CURRENTDIR=$(dirname $CURRENTDIR)
done
REPLACE="$REPLACE../"
FILES=$(echo "$FILES" | perl -pe "s!$CURRENTDIR/!$REPLACE!")
fi
MENUITEMS=$(echo "$FILES" | perl -pe "s/^(.*?)$/{title=\"\$1\";}/" | paste -sd ',' -)
[[ -z $MENUITEMS ]] && exit 200
"$DIALOG" -u -p "{menuItems=($MENUITEMS);}" | perl -e 'undef $/;$a=<>;$a=~m/<key>title(.|\n)+?<string>(.*?)</;print $2;'
fi
@@ -0,0 +1,41 @@
<center><font color=red>Any feedback about bugs or improvements is highly welcomed!</font></center>
# Introduction
Cappuccino <a href="http://cappuccino.org">cappuccino.org</a> is an open source framework that makes it easy to build desktop-caliber applications that run in a web browser.
# Commands
## Run
<button>&#x2318;R&nbsp;</button>
Run the current cappuccino web application in TextMate's HTML output window.
If you are inside of an Objective-J file (file extension .j) this command will look for a file `index.html` starting at the current folder and upwards within the file hierarchy or if you are working with a project it will look for it at the project's root path.
If the start HTML site differs you can set the shell variable `TM_OBJJ_MASTER_FILE` within a project.
## Run in Browser
<button>&#x21E7;&#x2318;R&nbsp;</button>
Run the current cappuccino web application in the default web browser.
If you are inside of an Objective-J file (file extension .j) this command will look for a file `index.html` starting at the current folder and upwards within the file hierarchy or if you are working with a project it will look for it at the project's root path.
If the start HTML site differs you can set the shell variable `TM_OBJJ_MASTER_FILE` within a project.
# Shell Variables #
## TM&#95;OBJJ&#95;MASTER&#95;FILE ##
This variable contains the path to the application's start HTML site.
# Main Bundle Maintainer
***Date: Sep 7 2009***
<pre>
- Tom Robinson&nbsp;<a href="mailto:tom@280north.com">tom@280north.com</a>
- Hans-Jörg Bibiko&nbsp;&nbsp;<a href="mailto:bibiko@eva.mpg.de">bibiko@eva.mpg.de</a>
</pre>