Skip to content
Snippets Groups Projects
Commit 679ca399 authored by Jack Chen (chendo)'s avatar Jack Chen (chendo)
Browse files

Re-added external script support

parent c128c71e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -30,6 +30,7 @@
@interface Trouter : NSObject {
NSString *editor;
NSFileManager *fileManager;
NSString *externalScript;
}
 
- (Trouter*) init;
Loading
Loading
Loading
Loading
@@ -34,6 +34,7 @@
self = [super init];
[self determineEditor];
fileManager = [[NSFileManager alloc] init];
externalScript = [[NSUserDefaults standardUserDefaults] stringForKey:@"TrouterScriptPath"];
return self;
}
 
Loading
Loading
@@ -130,6 +131,11 @@
 
if (lineNumber == nil)
lineNumber = @"";
if (externalScript) {
[NSTask launchedTaskWithLaunchPath:externalScript arguments:[NSArray arrayWithObjects:path, lineNumber, nil]];
return;
}
 
if (isDirectory) {
[[NSWorkspace sharedWorkspace] openFile:path];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment