File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -150,9 +150,6 @@ class TabBarView extends HTMLElement
150
150
tab ?= @ querySelector (' .right-clicked' )
151
151
item = tab .item
152
152
return unless item?
153
- unless [' TextEditor' , ' TestView' ].indexOf (item .constructor .name ) > - 1
154
- alert (" 'Open In New Window' only works for TextEditor tabs, for now." )
155
- return
156
153
if typeof item .getURI is ' function'
157
154
itemURI = item .getURI ()
158
155
else if typeof item .getPath is ' function'
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ class TabView extends HTMLElement
7
7
if typeof @item .getPath is ' function'
8
8
@path = @item .getPath ()
9
9
10
+ if [' TextEditor' , ' TestView' ].indexOf (item .constructor .name ) > - 1
11
+ @classList .add (' texteditor' )
10
12
@classList .add (' tab' , ' sortable' )
11
13
12
14
@itemTitle = document .createElement (' div' )
Original file line number Diff line number Diff line change @@ -22,9 +22,11 @@ menu: [
22
22
{label : ' Split Left' , command : ' tabs:split-left' }
23
23
{label : ' Split Right' , command : ' tabs:split-right' }
24
24
25
+ ]
26
+ ' .tab.texteditor' : [
25
27
{type : ' separator' }
26
-
27
28
{label : ' Open In New Window' , command : ' tabs:open-in-new-window' }
29
+ {type : ' separator' }
28
30
]
29
31
' .tab.pending-tab' : [
30
32
{label : ' Keep Pending Tab' , command : ' tabs:keep-pending-tab' }
You can’t perform that action at this time.
0 commit comments