diff --git a/src/packages/command-panel/lib/preview-list.coffee b/src/packages/command-panel/lib/preview-list.coffee index 66f0c98dd..2f4b89e2b 100644 --- a/src/packages/command-panel/lib/preview-list.coffee +++ b/src/packages/command-panel/lib/preview-list.coffee @@ -22,6 +22,16 @@ class PreviewList extends ScrollView @setSelectedOperationIndex(parseInt($(e.target).closest('li').data('index'))) @executeSelectedOperation() + @on 'click', 'li.path', @onPathSelected + + onPathSelected: (event) => + e = $(event.target) + e = e.parent() if e.parent().hasClass 'path' + return unless e.hasClass 'path' + e.children('ul.matches').toggle 100, (e) -> + $(this).closest('li.path').toggleClass 'is-collapsed' + + destroy: -> @destroyOperations() if @operations diff --git a/themes/atom-dark-ui/command-panel.css b/themes/atom-dark-ui/command-panel.css index 9f8f3948f..1d5c17036 100644 --- a/themes/atom-dark-ui/command-panel.css +++ b/themes/atom-dark-ui/command-panel.css @@ -31,7 +31,7 @@ .command-panel .preview-list .path { color: #999; - border-top: 1px solid rgba(255, 255, 255, 0.05); + border-top: 1px solid rgba(255, 255, 255, 0.02); } .command-panel .preview-list .path:first-child {