From c70c7531c2c54b7cd79c18f935e4cc30b5a65414 Mon Sep 17 00:00:00 2001 From: rob Date: Sat, 3 Jan 2009 22:39:52 +0000 Subject: [PATCH] cleaned up commands,fixed cpl of minor probs --- SuperCollider.tmbundle/Commands/Help.tmCommand | 6 ++++-- .../Commands/Implementations of.tmCommand | 6 +++--- SuperCollider.tmbundle/Commands/Interpret code 2.tmCommand | 2 +- SuperCollider.tmbundle/Commands/Open Class file.tmCommand | 6 ++++-- SuperCollider.tmbundle/Commands/References to.tmCommand | 6 ++++-- SuperCollider.tmbundle/Commands/Restart.tmCommand | 2 +- TextMate.sc | 4 ++-- 7 files changed, 19 insertions(+), 13 deletions(-) diff --git a/SuperCollider.tmbundle/Commands/Help.tmCommand b/SuperCollider.tmbundle/Commands/Help.tmCommand index 8c7ce93..3a817b1 100644 --- a/SuperCollider.tmbundle/Commands/Help.tmCommand +++ b/SuperCollider.tmbundle/Commands/Help.tmCommand @@ -6,9 +6,11 @@ nop command require_cmd sc3c -sc3c -d "${TM_SELECTED_TEXT:-\"\"}" +sc3c -d "${TM_SELECTED_TEXT:-\"\"}" + + fallbackInput - word + none input none keyEquivalent diff --git a/SuperCollider.tmbundle/Commands/Implementations of.tmCommand b/SuperCollider.tmbundle/Commands/Implementations of.tmCommand index 02789a1..ad36619 100644 --- a/SuperCollider.tmbundle/Commands/Implementations of.tmCommand +++ b/SuperCollider.tmbundle/Commands/Implementations of.tmCommand @@ -8,15 +8,15 @@ require_cmd sc3c sc3c -y $TM_SELECTED_TEXT fallbackInput - word + none input - selection + none keyEquivalent @y name Implementations of output - discard + showAsTooltip scope source.supercollider uuid diff --git a/SuperCollider.tmbundle/Commands/Interpret code 2.tmCommand b/SuperCollider.tmbundle/Commands/Interpret code 2.tmCommand index 3fb59a2..6005a82 100644 --- a/SuperCollider.tmbundle/Commands/Interpret code 2.tmCommand +++ b/SuperCollider.tmbundle/Commands/Interpret code 2.tmCommand @@ -11,7 +11,7 @@ sc3c -x SC_INTERPRET_TEXT; fallbackInput line input - selection + none keyEquivalent  name diff --git a/SuperCollider.tmbundle/Commands/Open Class file.tmCommand b/SuperCollider.tmbundle/Commands/Open Class file.tmCommand index 061c932..bf47d03 100644 --- a/SuperCollider.tmbundle/Commands/Open Class file.tmCommand +++ b/SuperCollider.tmbundle/Commands/Open Class file.tmCommand @@ -7,14 +7,16 @@ command require_cmd sc3c sc3c -j $TM_SELECTED_TEXT + fallbackInput + none input - selection + none keyEquivalent @j name Open Class file output - discard + showAsTooltip scope source.supercollider uuid diff --git a/SuperCollider.tmbundle/Commands/References to.tmCommand b/SuperCollider.tmbundle/Commands/References to.tmCommand index f6132e0..65e7e92 100644 --- a/SuperCollider.tmbundle/Commands/References to.tmCommand +++ b/SuperCollider.tmbundle/Commands/References to.tmCommand @@ -7,14 +7,16 @@ command require_cmd sc3c sc3c -Y $TM_SELECTED_TEXT + fallbackInput + none input - selection + none keyEquivalent @Y name References to output - discard + showAsTooltip scope source.supercollider uuid diff --git a/SuperCollider.tmbundle/Commands/Restart.tmCommand b/SuperCollider.tmbundle/Commands/Restart.tmCommand index 5372255..ac50522 100644 --- a/SuperCollider.tmbundle/Commands/Restart.tmCommand +++ b/SuperCollider.tmbundle/Commands/Restart.tmCommand @@ -14,7 +14,7 @@ sc3c -k name Recompile class library output - showAsTooltip + discard scope source.supercollider uuid diff --git a/TextMate.sc b/TextMate.sc index 13e15e6..bca7f7d 100755 --- a/TextMate.sc +++ b/TextMate.sc @@ -24,7 +24,7 @@ TextMate { item.state = item.state.not; }; openReferencesInTextMate.state = true; - openReferencesInTextMate.setShortCut("r", true, true); + openReferencesInTextMate.setShortCut("r", true, true); } } @@ -81,7 +81,7 @@ SC3Controller { var content = f.readAllString; var split = content.split($:); if("^[0-9]+$".matchRegexp(split.first.asString)) { - ("mate -l" ++ split.first + "\"" ++ fname ++ "\"").postln.unixCmd(postOutput: false); + ("mate -l" ++ split.first + "\"" ++ fname ++ "\"").unixCmd(postOutput: false); } { ("mate" + fname).unixCmd(postOutput: false); }