mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-18 02:19:57 +00:00
hotkey fixes (#1013)
This commit is contained in:
parent
f7f7bccbe3
commit
a2b633d3a5
@ -11,10 +11,10 @@ hotkeys:
|
|||||||
rename-tab:
|
rename-tab:
|
||||||
- 'Ctrl-Shift-R'
|
- 'Ctrl-Shift-R'
|
||||||
next-tab:
|
next-tab:
|
||||||
- 'Ctrl-Shift-ArrowRight'
|
- 'Ctrl-Shift-Right'
|
||||||
- 'Ctrl-Tab'
|
- 'Ctrl-Tab'
|
||||||
previous-tab:
|
previous-tab:
|
||||||
- 'Ctrl-Shift-ArrowLeft'
|
- 'Ctrl-Shift-Left'
|
||||||
- 'Ctrl-Shift-Tab'
|
- 'Ctrl-Shift-Tab'
|
||||||
tab-1:
|
tab-1:
|
||||||
- 'Alt-1'
|
- 'Alt-1'
|
||||||
@ -43,12 +43,12 @@ hotkeys:
|
|||||||
split-left: []
|
split-left: []
|
||||||
split-top: []
|
split-top: []
|
||||||
pane-nav-right:
|
pane-nav-right:
|
||||||
- 'Ctrl-Alt-ArrowRight'
|
- 'Ctrl-Alt-Right'
|
||||||
pane-nav-down:
|
pane-nav-down:
|
||||||
- 'Ctrl-Alt-ArrowDown'
|
- 'Ctrl-Alt-Down'
|
||||||
pane-nav-up:
|
pane-nav-up:
|
||||||
- 'Ctrl-Alt-ArrowUp'
|
- 'Ctrl-Alt-Up'
|
||||||
pane-nav-left:
|
pane-nav-left:
|
||||||
- 'Ctrl-Alt-ArrowLeft'
|
- 'Ctrl-Alt-Left'
|
||||||
close-pane: []
|
close-pane: []
|
||||||
pluginBlacklist: ['ssh']
|
pluginBlacklist: ['ssh']
|
||||||
|
@ -41,13 +41,13 @@ hotkeys:
|
|||||||
split-left: []
|
split-left: []
|
||||||
split-top: []
|
split-top: []
|
||||||
pane-nav-right:
|
pane-nav-right:
|
||||||
- '⌘-⌥-ArrowRight'
|
- '⌘-⌥-Right'
|
||||||
pane-nav-down:
|
pane-nav-down:
|
||||||
- '⌘-⌥-ArrowDown'
|
- '⌘-⌥-Down'
|
||||||
pane-nav-up:
|
pane-nav-up:
|
||||||
- '⌘-⌥-ArrowUp'
|
- '⌘-⌥-Up'
|
||||||
pane-nav-left:
|
pane-nav-left:
|
||||||
- '⌘-⌥-ArrowLeft'
|
- '⌘-⌥-Left'
|
||||||
close-pane:
|
close-pane:
|
||||||
- '⌘-Shift-W'
|
- '⌘-Shift-W'
|
||||||
pluginBlacklist: ['ssh']
|
pluginBlacklist: ['ssh']
|
||||||
|
@ -11,10 +11,10 @@ hotkeys:
|
|||||||
rename-tab:
|
rename-tab:
|
||||||
- 'Ctrl-Shift-R'
|
- 'Ctrl-Shift-R'
|
||||||
next-tab:
|
next-tab:
|
||||||
- 'Ctrl-Shift-ArrowRight'
|
- 'Ctrl-Shift-Right'
|
||||||
- 'Ctrl-Tab'
|
- 'Ctrl-Tab'
|
||||||
previous-tab:
|
previous-tab:
|
||||||
- 'Ctrl-Shift-ArrowLeft'
|
- 'Ctrl-Shift-Left'
|
||||||
- 'Ctrl-Shift-Tab'
|
- 'Ctrl-Shift-Tab'
|
||||||
tab-1:
|
tab-1:
|
||||||
- 'Alt-1'
|
- 'Alt-1'
|
||||||
@ -43,12 +43,12 @@ hotkeys:
|
|||||||
split-left: []
|
split-left: []
|
||||||
split-top: []
|
split-top: []
|
||||||
pane-nav-right:
|
pane-nav-right:
|
||||||
- 'Ctrl-Alt-ArrowRight'
|
- 'Ctrl-Alt-Right'
|
||||||
pane-nav-down:
|
pane-nav-down:
|
||||||
- 'Ctrl-Alt-ArrowDown'
|
- 'Ctrl-Alt-Down'
|
||||||
pane-nav-up:
|
pane-nav-up:
|
||||||
- 'Ctrl-Alt-ArrowUp'
|
- 'Ctrl-Alt-Up'
|
||||||
pane-nav-left:
|
pane-nav-left:
|
||||||
- 'Ctrl-Alt-ArrowLeft'
|
- 'Ctrl-Alt-Left'
|
||||||
close-pane: []
|
close-pane: []
|
||||||
pluginBlacklist: []
|
pluginBlacklist: []
|
||||||
|
@ -50,6 +50,20 @@ export function stringifyKeySequence (events: NativeKeyEvent[]): string[] {
|
|||||||
key = key.replace('Key', '')
|
key = key.replace('Key', '')
|
||||||
key = key.replace('Arrow', '')
|
key = key.replace('Arrow', '')
|
||||||
key = key.replace('Digit', '')
|
key = key.replace('Digit', '')
|
||||||
|
key = {
|
||||||
|
Comma: ',',
|
||||||
|
Period: '.',
|
||||||
|
Slash: '/',
|
||||||
|
Backslash: '\\',
|
||||||
|
IntlBackslash: '\\',
|
||||||
|
Backquote: '`',
|
||||||
|
Minus: '-',
|
||||||
|
Equal: '=',
|
||||||
|
Semicolon: ';',
|
||||||
|
Quote: '\'',
|
||||||
|
BracketLeft: '[',
|
||||||
|
BracketRight: ']',
|
||||||
|
}[key] || key
|
||||||
itemKeys.push(key)
|
itemKeys.push(key)
|
||||||
items.push(itemKeys.join('-'))
|
items.push(itemKeys.join('-'))
|
||||||
}
|
}
|
||||||
|
@ -79,11 +79,11 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
],
|
],
|
||||||
'zoom-in': [
|
'zoom-in': [
|
||||||
'⌘-=',
|
'⌘-=',
|
||||||
'⌘-Shift-+',
|
'⌘-Shift-=',
|
||||||
],
|
],
|
||||||
'zoom-out': [
|
'zoom-out': [
|
||||||
'⌘--',
|
'⌘--',
|
||||||
'⌘-Shift-_',
|
'⌘-Shift--',
|
||||||
],
|
],
|
||||||
'reset-zoom': [
|
'reset-zoom': [
|
||||||
'⌘-0',
|
'⌘-0',
|
||||||
@ -92,10 +92,10 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
'⌘-T',
|
'⌘-T',
|
||||||
'⌘-N',
|
'⌘-N',
|
||||||
],
|
],
|
||||||
'home': ['⌘-ArrowLeft', 'Home'],
|
'home': ['⌘-Left', 'Home'],
|
||||||
'end': ['⌘-ArrowRight', 'End'],
|
'end': ['⌘-Right', 'End'],
|
||||||
'previous-word': ['⌥-ArrowLeft'],
|
'previous-word': ['⌥-Left'],
|
||||||
'next-word': ['⌥-ArrowRight'],
|
'next-word': ['⌥-Right'],
|
||||||
'delete-previous-word': ['⌥-Backspace'],
|
'delete-previous-word': ['⌥-Backspace'],
|
||||||
'delete-next-word': ['⌥-Delete'],
|
'delete-next-word': ['⌥-Delete'],
|
||||||
'search': [
|
'search': [
|
||||||
@ -124,11 +124,11 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
],
|
],
|
||||||
'zoom-in': [
|
'zoom-in': [
|
||||||
'Ctrl-=',
|
'Ctrl-=',
|
||||||
'Ctrl-Shift-+',
|
'Ctrl-Shift-=',
|
||||||
],
|
],
|
||||||
'zoom-out': [
|
'zoom-out': [
|
||||||
'Ctrl--',
|
'Ctrl--',
|
||||||
'Ctrl-Shift-_',
|
'Ctrl-Shift--',
|
||||||
],
|
],
|
||||||
'reset-zoom': [
|
'reset-zoom': [
|
||||||
'Ctrl-0',
|
'Ctrl-0',
|
||||||
@ -138,8 +138,8 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
],
|
],
|
||||||
'home': ['Home'],
|
'home': ['Home'],
|
||||||
'end': ['End'],
|
'end': ['End'],
|
||||||
'previous-word': ['Ctrl-ArrowLeft'],
|
'previous-word': ['Ctrl-Left'],
|
||||||
'next-word': ['Ctrl-ArrowRight'],
|
'next-word': ['Ctrl-Right'],
|
||||||
'delete-previous-word': ['Ctrl-Backspace'],
|
'delete-previous-word': ['Ctrl-Backspace'],
|
||||||
'delete-next-word': ['Ctrl-Delete'],
|
'delete-next-word': ['Ctrl-Delete'],
|
||||||
'search': [
|
'search': [
|
||||||
@ -166,11 +166,11 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
],
|
],
|
||||||
'zoom-in': [
|
'zoom-in': [
|
||||||
'Ctrl-=',
|
'Ctrl-=',
|
||||||
'Ctrl-Shift-+',
|
'Ctrl-Shift-=',
|
||||||
],
|
],
|
||||||
'zoom-out': [
|
'zoom-out': [
|
||||||
'Ctrl--',
|
'Ctrl--',
|
||||||
'Ctrl-Shift-_',
|
'Ctrl-Shift--',
|
||||||
],
|
],
|
||||||
'reset-zoom': [
|
'reset-zoom': [
|
||||||
'Ctrl-0',
|
'Ctrl-0',
|
||||||
@ -180,8 +180,8 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
],
|
],
|
||||||
'home': ['Home'],
|
'home': ['Home'],
|
||||||
'end': ['End'],
|
'end': ['End'],
|
||||||
'previous-word': ['Ctrl-ArrowLeft'],
|
'previous-word': ['Ctrl-Left'],
|
||||||
'next-word': ['Ctrl-ArrowRight'],
|
'next-word': ['Ctrl-Right'],
|
||||||
'delete-previous-word': ['Ctrl-Backspace'],
|
'delete-previous-word': ['Ctrl-Backspace'],
|
||||||
'delete-next-word': ['Ctrl-Delete'],
|
'delete-next-word': ['Ctrl-Delete'],
|
||||||
'search': [
|
'search': [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user