mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
wip
This commit is contained in:
@@ -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
15
src/project.coffee
Normal 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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user