mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-28 06:27:02 +00:00
Sync bundle with TextMate repo
This commit is contained in:
+36
@@ -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>⌘R </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>⇧⌘R </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_OBJJ_MASTER_FILE ##
|
||||
|
||||
This variable contains the path to the application's start HTML site.
|
||||
|
||||
|
||||
# Main Bundle Maintainer
|
||||
|
||||
***Date: Sep 7 2009***
|
||||
|
||||
<pre>
|
||||
- Tom Robinson <a href="mailto:tom@280north.com">tom@280north.com</a>
|
||||
- Hans-Jörg Bibiko <a href="mailto:bibiko@eva.mpg.de">bibiko@eva.mpg.de</a>
|
||||
</pre>
|
||||
|
||||
Reference in New Issue
Block a user