mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Collapse/expand all with ctrl-{}
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user