This commit is contained in:
Corey Johnson
2011-11-09 10:38:25 -08:00
parent d0ac88ae64
commit 7a567dab69
6 changed files with 26 additions and 38 deletions

View File

@@ -51,6 +51,9 @@ class KeyBinder
keys.push @modifierKeys.alt if event.modifierFlags & OSX.NSAlternateKeyMask
keys.push event.charactersIgnoringModifiers.toLowerCase().charCodeAt 0
console.log event.charactersIgnoringModifiers.toLowerCase()
console.log event.charactersIgnoringModifiers.valueOf()
binding = keys.sort().join "-"
callbacks = @bindings[binding]

15
src/project.coffee Normal file
View File

@@ -0,0 +1,15 @@
module.exports =
class Project
@scan: (path, selectCallback, sortCallback) ->
fs = OSX.NSFileManager.defaultManager
dirEnumerator = fs.enumeratorAtPath rootPath
results = []
while path = dirEnumerator.nextObject
path = path.valueOf()
if not selectCallback or selectCallback(path)
results.push path
results.sort sortCallback if sortCallback
results

View File

@@ -27,6 +27,8 @@ windowAdditions =
@path = $atomController.path
@setTitle _.last @path.split '/'
$atomController.scan_select_compare(@path, null, null)
# Remember sizing!
defaultFrame = x: 0, y: 0, width: 600, height: 800