Skip to content

Commit

Permalink
feat: tab context menu 'Restart'
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiming-Liu authored and Eugeny committed Jul 6, 2022
1 parent 8be6f85 commit aa5970b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tabby-core/src/tabContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider {
label: this.translate.instant('Duplicate'),
click: () => this.app.duplicateTab(tab),
},
{
label: this.translate.instant('Restart'),
click: () => {
this.app.duplicateTab(tab)
if (this.app.tabs.includes(tab)) {
this.app.closeTab(tab, true)
} else {
tab.destroy()
}
},
},
{
label: this.translate.instant('Color'),
sublabel: currentColor ? this.translate.instant(currentColor) : undefined,
Expand Down

0 comments on commit aa5970b

Please sign in to comment.