mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 17:07:15 +00:00
added a profile selector hotkey
This commit is contained in:
parent
0eb006f297
commit
7f921c4d34
5 changed files with 17 additions and 0 deletions
|
@ -10,6 +10,7 @@ import { SelectorOption } from './api/selector'
|
|||
import { ProfilesService } from './services/profiles.service'
|
||||
import { AppService } from './services/app.service'
|
||||
import { NotificationsService } from './services/notifications.service'
|
||||
import { HotkeysService } from 'api'
|
||||
|
||||
/** @hidden */
|
||||
@Injectable()
|
||||
|
@ -21,8 +22,14 @@ export class ButtonProvider extends ToolbarButtonProvider {
|
|||
private profilesServices: ProfilesService,
|
||||
private config: ConfigService,
|
||||
private notifications: NotificationsService,
|
||||
hotkeys: HotkeysService,
|
||||
) {
|
||||
super()
|
||||
hotkeys.hotkey$.subscribe(hotkey => {
|
||||
if (hotkey === 'profile-selector') {
|
||||
this.activate()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
async activate () {
|
||||
|
|
|
@ -69,4 +69,6 @@ hotkeys:
|
|||
pane-maximize:
|
||||
- 'Ctrl-Alt-Enter'
|
||||
close-pane: []
|
||||
profile-selector:
|
||||
- 'Ctrl-Shift-T'
|
||||
pluginBlacklist: ['ssh']
|
||||
|
|
|
@ -68,4 +68,6 @@ hotkeys:
|
|||
- '⌘-⌥-Enter'
|
||||
close-pane:
|
||||
- '⌘-Shift-W'
|
||||
profile-selector:
|
||||
- '⌘-E'
|
||||
pluginBlacklist: ['ssh']
|
||||
|
|
|
@ -70,4 +70,6 @@ hotkeys:
|
|||
pane-maximize:
|
||||
- 'Ctrl-Alt-Enter'
|
||||
close-pane: []
|
||||
profile-selector:
|
||||
- 'Ctrl-Shift-T'
|
||||
pluginBlacklist: []
|
||||
|
|
|
@ -6,6 +6,10 @@ import { HotkeyDescription, HotkeyProvider } from './api/hotkeyProvider'
|
|||
@Injectable()
|
||||
export class AppHotkeyProvider extends HotkeyProvider {
|
||||
hotkeys: HotkeyDescription[] = [
|
||||
{
|
||||
id: 'profile-selector',
|
||||
name: 'Show profile selector',
|
||||
},
|
||||
{
|
||||
id: 'toggle-fullscreen',
|
||||
name: 'Toggle fullscreen mode',
|
||||
|
|
Loading…
Reference in a new issue