move event name to title attribute

This was causing a bit of a headache because the event names could be
really really long.  They're also not useful for everyday use, but for
package authors, so lets make them less prominent.
This commit is contained in:
Justin Palmer
2013-02-03 07:52:25 -08:00
parent 138a68c579
commit b1cbc3b0ad

View File

@@ -41,9 +41,8 @@ class CommandPaletteView extends SelectList
keyBindings = @keyBindings
$$ ->
@li class: 'event', 'data-event-name': eventName, =>
@div eventDescription, class: 'event-description'
@span eventDescription, class: 'label', title: eventName
@div class: 'right', =>
@div eventName, class: 'label'
for binding in keyBindings[eventName] ? []
@kbd binding, class: 'key-binding'