some tweaks
This commit is contained in:
parent
e398e9e634
commit
067f4cb869
|
@ -0,0 +1,16 @@
|
||||||
|
<?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>content</key>
|
||||||
|
<string>Char.nl</string>
|
||||||
|
<key>name</key>
|
||||||
|
<string>Char.nl</string>
|
||||||
|
<key>scope</key>
|
||||||
|
<string>source.supercollider</string>
|
||||||
|
<key>tabTrigger</key>
|
||||||
|
<string>nl</string>
|
||||||
|
<key>uuid</key>
|
||||||
|
<string>61169F07-1581-4355-8143-3EEF6F672E58</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
|
@ -88,7 +88,7 @@
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>match</key>
|
<key>match</key>
|
||||||
<string>\|[a-zA-Z0-9\#\[\]\_\=\.\(\)[[:space:]]\,]+\|</string>
|
<string>\|[a-zA-Z0-9\#\[\]\"\_\=\.\(\)[[:space:]]\,]+\|</string>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>variable.parameter.function.supercollider</string>
|
<string>variable.parameter.function.supercollider</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<array>
|
<array>
|
||||||
<string>F63E530D-4C84-4C66-9EAA-6FC504FA4587</string>
|
<string>F63E530D-4C84-4C66-9EAA-6FC504FA4587</string>
|
||||||
<string>2C468C9B-66BB-40C6-B845-E2360D4717B4</string>
|
<string>2C468C9B-66BB-40C6-B845-E2360D4717B4</string>
|
||||||
|
<string>61169F07-1581-4355-8143-3EEF6F672E58</string>
|
||||||
<string>EEDC65AF-1F53-4E2F-AA08-D1E04FAC5B1D</string>
|
<string>EEDC65AF-1F53-4E2F-AA08-D1E04FAC5B1D</string>
|
||||||
<string>F70E5246-BA0F-4201-8C63-09D8CE38A690</string>
|
<string>F70E5246-BA0F-4201-8C63-09D8CE38A690</string>
|
||||||
<string>C56D8EA0-215E-438C-B039-23830645FFDA</string>
|
<string>C56D8EA0-215E-438C-B039-23830645FFDA</string>
|
||||||
|
|
42
TextMate.sc
42
TextMate.sc
|
@ -3,26 +3,30 @@ TextMate {
|
||||||
|
|
||||||
*initClass {
|
*initClass {
|
||||||
var opt;
|
var opt;
|
||||||
|
|
||||||
menu = CocoaMenuItem(nil, 7, "TextMate", true);
|
|
||||||
|
|
||||||
opt = CocoaMenuItem(menu, 0, "TextMate to front", false) {
|
|
||||||
"osascript << END
|
|
||||||
tell application \"TextMate\" to activate
|
|
||||||
END
|
|
||||||
".unixCmd(postOutput: false)
|
|
||||||
};
|
|
||||||
opt.setShortCut("T");
|
|
||||||
|
|
||||||
openClassInTextMate = CocoaMenuItem(menu, 1, "Open class files in TextMate", false) { |item|
|
|
||||||
item.state = item.state.not;
|
|
||||||
};
|
|
||||||
openClassInTextMate.state = true;
|
|
||||||
|
|
||||||
openReferencesInTextMate = CocoaMenuItem(menu, 2, "Open references in TextMate", false) { |item|
|
try {
|
||||||
item.state = item.state.not;
|
menu = CocoaMenuItem(nil, 7, "TextMate", true);
|
||||||
};
|
|
||||||
openReferencesInTextMate.state = true;
|
opt = CocoaMenuItem(menu, 0, "TextMate to front", false) {
|
||||||
|
"osascript << END
|
||||||
|
tell application \"TextMate\" to activate
|
||||||
|
END
|
||||||
|
".unixCmd(postOutput: false)
|
||||||
|
};
|
||||||
|
opt.setShortCut("T");
|
||||||
|
|
||||||
|
openClassInTextMate = CocoaMenuItem(menu, 1, "Open class files in TextMate", false) { |item|
|
||||||
|
item.state = item.state.not;
|
||||||
|
};
|
||||||
|
openClassInTextMate.state = true;
|
||||||
|
|
||||||
|
openReferencesInTextMate = CocoaMenuItem(menu, 2, "Open references in TextMate", false) { |item|
|
||||||
|
item.state = item.state.not;
|
||||||
|
};
|
||||||
|
openReferencesInTextMate.state = true;
|
||||||
|
} {
|
||||||
|
"TextMate found a problem installing CocoaMenuItems - you may be running SC 3.2 or older, or booting from command-line.".warn
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue