Can move files from the tree view

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-27 12:36:29 -06:00
parent 4ca75b02c5
commit 69a76d1b47
8 changed files with 120 additions and 59 deletions

View File

@@ -5,7 +5,10 @@ EventEmitter = require 'event-emitter'
module.exports =
class Directory
@idCounter = 0
constructor: (@path) ->
@id = ++Directory.idCounter
getName: ->
fs.base(@path) + '/'

View File

@@ -4,3 +4,5 @@ window.keymap.bindKeys '.tree-view'
'enter': 'tree-view:open-selected-entry'
'm': 'tree-view:move'
window.keymap.bindKeys '.move-dialog .mini.editor'
'enter': 'tree-view:confirm'