Skip to content

Commit

Permalink
Simplified the choice of contexts for actions. When you create a new …
Browse files Browse the repository at this point in the history
…action, a tm_dialog menu pops up for you to pick a context out of. When you want to change the context of an action, a similar tm_dialog menu pops up.

All other ways of changing the context are removed.
Also, the "Actions for Context" command is being removed, since All Actions easily replicates it (click on a context in the list of the left to only see that context.
The other two review commands (for Next actions) will also be merged into this one HTML window.

Future plans: To have this window update itself in the background, so the user could just have it running at all times.

git-svn-id: http://svn.textmate.org/trunk/Bundles/GTDAlt.tmbundle@5902 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Charilaos Skiadas committed Nov 3, 2006
1 parent 47898e2 commit 71d72c2
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 254 deletions.
40 changes: 0 additions & 40 deletions Commands/Extend.tmCommand

This file was deleted.

33 changes: 33 additions & 0 deletions Commands/New.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>#!/usr/bin/env ruby
require ENV['TM_BUNDLE_SUPPORT'] + '/bin/GTDUtils.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/dialog.rb'
contextList = GTDLight.get_env_contexts
choice = Dialog.menu(contextList)
if choice then
print "@#{contextList[choice]} "
else
require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes.rb'
TextMate.exit_discard
end
</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>@</string>
<key>name</key>
<string>New</string>
<key>output</key>
<string>afterSelectedText</string>
<key>scope</key>
<string>text.gtdalt - meta.action - meta.line.project - meta.note</string>
<key>uuid</key>
<string>BBA04431-8960-4017-A684-7FBACB0F7FFF</string>
</dict>
</plist>
28 changes: 0 additions & 28 deletions Commands/Select Context.tmCommand

This file was deleted.

28 changes: 0 additions & 28 deletions Commands/Show Contexts.tmCommand

This file was deleted.

44 changes: 0 additions & 44 deletions Commands/actions for context.tmCommand

This file was deleted.

31 changes: 0 additions & 31 deletions Commands/change context.tmCommand

This file was deleted.

2 changes: 1 addition & 1 deletion Commands/choose context.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
<key>keyEquivalent</key>
<string>^~c</string>
<key>name</key>
<string>Choose</string>
<string>Change Context</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
Expand Down
42 changes: 0 additions & 42 deletions Macros/EOL + new action.tmMacro

This file was deleted.

59 changes: 59 additions & 0 deletions Macros/New (on next line).tmMacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>commands</key>
<array>
<dict>
<key>command</key>
<string>moveToEndOfLine:</string>
</dict>
<dict>
<key>command</key>
<string>insertNewline:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
require ENV['TM_BUNDLE_SUPPORT'] + '/bin/GTDUtils.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/dialog.rb'
contextList = GTDLight.get_env_contexts
choice = Dialog.menu(contextList)
if choice then
print "@#{contextList[choice]} "
else
require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes.rb'
TextMate.exit_discard
end
</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>@</string>
<key>name</key>
<string>New</string>
<key>output</key>
<string>afterSelectedText</string>
<key>scope</key>
<string>text.gtdalt - meta.action - meta.line.project - meta.note</string>
<key>uuid</key>
<string>BBA04431-8960-4017-A684-7FBACB0F7FFF</string>
</dict>
<key>command</key>
<string>executeCommandWithOptions:</string>
</dict>
</array>
<key>keyEquivalent</key>
<string></string>
<key>name</key>
<string>New (on next line)</string>
<key>scope</key>
<string>text.gtdalt</string>
<key>uuid</key>
<string>4EF0270A-A1D7-4E98-8123-6E6F1305B7E2</string>
</dict>
</plist>
16 changes: 0 additions & 16 deletions Snippets/new action.tmSnippet

This file was deleted.

Loading

0 comments on commit 71d72c2

Please sign in to comment.