set window title with filename
Esse commit está contido em:
@@ -28,6 +28,7 @@
|
||||
|
||||
// https://github.com/parmanoir/jscocoa#readme
|
||||
JSCocoa* jsc = [[JSCocoa alloc] initWithGlobalContext:[[webView mainFrame] globalContext]];
|
||||
[jsc setObject:self withName:@"App"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -16,6 +16,7 @@ saveAs = ->
|
||||
return null
|
||||
if file = panel.filenames.lastObject
|
||||
filename = file
|
||||
App.window.title = _.last filename.split('/')
|
||||
save()
|
||||
|
||||
canon = require 'pilot/canon'
|
||||
@@ -37,6 +38,7 @@ bindKey 'open', 'Command-O', (env, args, request) ->
|
||||
|
||||
if file = panel.filenames.lastObject
|
||||
filename = file
|
||||
App.window.title = _.last filename.split('/')
|
||||
code = OSX.NSString.stringWithContentsOfFile file
|
||||
env.editor.getSession().setValue code
|
||||
|
||||
@@ -53,4 +55,4 @@ bindKey 'togglecomment', 'Command-/', (env) ->
|
||||
env.editor.toggleCommentLines()
|
||||
|
||||
bindKey 'fullscreen', 'Command-Return', (env) ->
|
||||
OSX.NSLog 'coming soon'
|
||||
OSX.NSLog 'coming soon'
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
}
|
||||
if (file = panel.filenames.lastObject) {
|
||||
filename = file;
|
||||
App.window.title = _.last(filename.split('/'));
|
||||
return save();
|
||||
}
|
||||
};
|
||||
@@ -42,6 +43,7 @@
|
||||
}
|
||||
if (file = panel.filenames.lastObject) {
|
||||
filename = file;
|
||||
App.window.title = _.last(filename.split('/'));
|
||||
code = OSX.NSString.stringWithContentsOfFile(file);
|
||||
return env.editor.getSession().setValue(code);
|
||||
}
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário