Collapse/expand all with ctrl-{}

This commit is contained in:
Kevin Sawicki
2013-02-13 15:50:35 -08:00
parent 936324a75f
commit 307be184c8
2 changed files with 6 additions and 0 deletions

View File

@@ -12,3 +12,7 @@
'meta-e': 'command-panel:set-selection-as-regex-address'
'meta-f': 'command-panel:find-in-file'
'meta-F': 'command-panel:find-in-project'
'.command-panel':
'ctrl-{': 'command-panel:collapse-all'
'ctrl-}': 'command-panel:expand-all'

View File

@@ -23,6 +23,8 @@ class PreviewList extends ScrollView
@executeSelectedOperation()
@on 'mousedown', 'li.path', @onPathSelected
@command 'command-panel:collapse-all', => @collapseAllPaths()
@command 'command-panel:expand-all', => @expandAllPaths()
onPathSelected: (event) =>
e = $(event.target)