mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
cmd-w for tabs. no dirty checking yet.
This commit is contained in:
@@ -49,6 +49,10 @@ class TabsPane extends Pane
|
||||
"""
|
||||
$("#tabs ul li:last").addClass 'active'
|
||||
|
||||
closeActiveTab: ->
|
||||
@removeTab $('#tabs ul .active').data 'path'
|
||||
@prevTab()
|
||||
|
||||
removeTab: (path) ->
|
||||
tab = $("#tabs li[data-path='#{path}']")
|
||||
if tab.hasClass("active")
|
||||
|
||||
Reference in New Issue
Block a user