Skip to content

Commit

Permalink
• added two tmcommands: Edit Preferences File and Remove Preferences …
Browse files Browse the repository at this point in the history
…File

git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle@11032 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
bibiko committed Dec 18, 2008
1 parent ebc85f3 commit ccf7393
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Commands/Edit Preference.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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>open ~/Library/Preferences/com.macromates.textmate.getbundles.plist</string>
<key>input</key>
<string>none</string>
<key>name</key>
<string>Edit Preferences File (Plist)</string>
<key>output</key>
<string>showAsTooltip</string>
<key>uuid</key>
<string>B23B7FC7-9711-4003-B17C-B715743D6774</string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions Commands/Remove Preference.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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>[[ `"$DIALOG" -e -p '{title="";informativeText="";messageTitle="Do you really want to remove GetBundles’s Preferences File?"; buttonTitles=(No, Yes);}'` == 0 ]] &amp;&amp; exit 200
rm -f ~/Library/Preferences/com.macromates.textmate.getbundles.plist</string>
<key>input</key>
<string>none</string>
<key>name</key>
<string>Remove Preferences File</string>
<key>output</key>
<string>showAsTooltip</string>
<key>uuid</key>
<string>04CC9146-8D9A-45D7-A048-DA959260FEBF</string>
</dict>
</plist>
8 changes: 7 additions & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
<string>4668A330-F43D-4FD7-8FB7-83AD52973BF5</string>
<string>ADD187FD-A8A4-4432-9D14-FA18970603E9</string>
<string>------------------------------------</string>
<string>F9F16538-9D83-45FC-B1FC-0D986786C325</string>
<string>B23B7FC7-9711-4003-B17C-B715743D6774</string>
<string>04CC9146-8D9A-45D7-A048-DA959260FEBF</string>
<string>------------------------------------</string>
<string>0AC0B797-D6E9-4208-B00E-7ABB572FDB2A</string>
</array>
<key>submenus</key>
<dict/>
Expand All @@ -34,6 +37,9 @@
<string>A3156F4D-D08B-4A40-9842-2ADF68DAF9BE</string>
<string>4668A330-F43D-4FD7-8FB7-83AD52973BF5</string>
<string>ADD187FD-A8A4-4432-9D14-FA18970603E9</string>
<string>B23B7FC7-9711-4003-B17C-B715743D6774</string>
<string>04CC9146-8D9A-45D7-A048-DA959260FEBF</string>
<string>0AC0B797-D6E9-4208-B00E-7ABB572FDB2A</string>
</array>
<key>uuid</key>
<string>8156416B-073A-4540-ACDE-9B2B2724A1EF</string>
Expand Down

0 comments on commit ccf7393

Please sign in to comment.