Skip to content

Commit

Permalink
Adding Delete Except. Debugged Get Latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbirk committed Oct 16, 2011
1 parent ac29922 commit 9a4d7d2
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 2 deletions.
52 changes: 52 additions & 0 deletions Commands/Delete Except.tmCommand
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>for file in $(find . -name "*.cls*")
do
if [[ $file != *$TM_SELECTED_TEXT* ]]
then
rm $file;
fi
done
for file in $(find . -name "*.page*")
do
if [[ $file != *$TM_SELECTED_TEXT* ]]
then
rm $file;
fi
done
for file in $(find . -name "*.component*")
do
if [[ $file != *$TM_SELECTED_TEXT* ]]
then
rm $file;
fi
done
for file in $(find . -name "*.trigger*")
do
if [[ $file != *$TM_SELECTED_TEXT* ]]
then
rm $file;
fi
done
echo "Only $TM_SELECTED_TEXT remains. View in Finder to fast refresh."</string>
<key>fallbackInput</key>
<string>none</string>
<key>input</key>
<string>selection</string>
<key>name</key>
<string>Delete Except</string>
<key>output</key>
<string>showAsTooltip</string>
<key>uuid</key>
<string>7BBBD058-846F-4C06-8355-D2AA72B3DE51</string>
</dict>
</plist>
3 changes: 1 addition & 2 deletions Commands/Get Latest.tmCommand
Expand Up @@ -10,8 +10,7 @@ echo "&lt;div style='border:1px solid #ccc; padding: 5px;'&gt;&lt;pre&gt;"
cd $TM_PROJECT_DIRECTORY
. build.properties
if[ ! -f "new.properties"]
if [ ! -f "new.properties" ]
then
if [ ${usekeychainaccess} == 'enabled' ]
then
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -11,6 +11,7 @@ I've got videos on using the bundle on YouTube: <a href="http://www.youtube.com/
<LI> Added "Build Sequential" and "Build Latest" commands.
<LI> Updated REST/HTML widgets. More stability, support for OAuth login.
<LI> Data.json being cleared out again
<LI> Adding "Delete Except" command. See description below.
</UL>

<b>October 14, 2011</b>:<BR />
Expand Down Expand Up @@ -138,6 +139,7 @@ The bundle provides the following:
<LI>Add Password: Highlighted text in the format "password:accountname" will add a new password to Keychain under accountname and replace the text with accountname.
<LI>Lock Keychain: Locks keychain and requires a password for later use.
</UL>
<LI>Delete Except: This command will delete all the classes, pages, components and triggers from the project unless they include the highlighted text in their filenames. This is case sensitive, and obviously suggested to save and build before latest ... there is no undo. Only for the brave but handy for people with large orgs looking only for projects which started with "something".
</OL>
</UL>
</P>
Expand Down
2 changes: 2 additions & 0 deletions info.plist
Expand Up @@ -14,6 +14,7 @@
<string>------------------------------------</string>
<string>8B315853-C516-4750-9761-3D3D6C2EE219</string>
<string>81EE4F89-6521-4A4F-91BE-9E58EA66D16A</string>
<string>7BBBD058-846F-4C06-8355-D2AA72B3DE51</string>
</array>
<key>submenus</key>
<dict>
Expand Down Expand Up @@ -119,6 +120,7 @@
<string>5B3012C0-BF85-4C2E-BDC4-F7F5393E5443</string>
<string>E5BF4EEA-8CA5-409A-BF52-4B55B6A5F01B</string>
<string>B1A25554-23F4-4412-9573-3968F02AB092</string>
<string>7BBBD058-846F-4C06-8355-D2AA72B3DE51</string>
<string>47A9C7D8-B9AC-4BB8-997D-70D2C19FEE17</string>
<string>D3E309C0-7A27-418A-8B7C-27E0A86A795F</string>
<string>C486BDD5-15E0-415E-9D23-874A12A9027B</string>
Expand Down

0 comments on commit 9a4d7d2

Please sign in to comment.