mirror of
https://github.com/Eugeny/tabby.git
synced 2025-02-23 14:59:41 +08:00
Create close pane hotkey.
This commit is contained in:
parent
11902020a5
commit
4949f14184
@ -222,6 +222,9 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
|
||||
case 'split-nav-down':
|
||||
this.navigate('b')
|
||||
break
|
||||
case 'close-focus-pane':
|
||||
this.removeTab(this.focusedTab)
|
||||
break
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -336,6 +339,8 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
|
||||
|
||||
if (this.root.children.length === 0) {
|
||||
this.destroy()
|
||||
} else {
|
||||
this.focusAnyIn(parent)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -50,4 +50,5 @@ hotkeys:
|
||||
- 'Ctrl-Alt-ArrowUp'
|
||||
split-nav-left:
|
||||
- 'Ctrl-Alt-ArrowLeft'
|
||||
close-focus-pane: []
|
||||
pluginBlacklist: ['ssh']
|
||||
|
@ -48,4 +48,6 @@ hotkeys:
|
||||
- '⌘-⌥-ArrowUp'
|
||||
split-nav-left:
|
||||
- '⌘-⌥-ArrowLeft'
|
||||
close-focus-pane:
|
||||
- '⌘-Shift-W'
|
||||
pluginBlacklist: ['ssh']
|
||||
|
@ -50,4 +50,5 @@ hotkeys:
|
||||
- 'Ctrl-Alt-ArrowUp'
|
||||
split-nav-left:
|
||||
- 'Ctrl-Alt-ArrowLeft'
|
||||
close-focus-pane: []
|
||||
pluginBlacklist: []
|
||||
|
@ -109,6 +109,10 @@ export class AppHotkeyProvider extends HotkeyProvider {
|
||||
id: 'split-nav-right',
|
||||
name: 'Focus the pane on the right',
|
||||
},
|
||||
{
|
||||
id: 'close-focus-pane',
|
||||
name: 'Close focused pane',
|
||||
},
|
||||
]
|
||||
|
||||
async provide (): Promise<IHotkeyDescription[]> {
|
||||
|
Loading…
Reference in New Issue
Block a user