diff --git a/tabby-terminal/src/api/baseTerminalTab.component.ts b/tabby-terminal/src/api/baseTerminalTab.component.ts index 1bcc43263a1c826c21716daa180712fbdee6ef3a..a4318b72b4e7eb42e57ffc03b88f89db4257965f 100644 --- a/tabby-terminal/src/api/baseTerminalTab.component.ts +++ b/tabby-terminal/src/api/baseTerminalTab.component.ts @@ -273,6 +273,9 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit case 'copy-current-path': this.copyCurrentPath() break + case 'scroll-to-bottom': + this.frontend?.scrollToBottom() + break } }) diff --git a/tabby-terminal/src/config.ts b/tabby-terminal/src/config.ts index 0c62b7449546bd83d42a0f63f54451e1ef98d3d8..cc50243d153e220e283a1ba28362b23a98a58a48 100644 --- a/tabby-terminal/src/config.ts +++ b/tabby-terminal/src/config.ts @@ -5,6 +5,7 @@ export class TerminalConfigProvider extends ConfigProvider { defaults = { hotkeys: { 'copy-current-path': [], + 'scroll-to-bottom': [], }, terminal: { frontend: 'xterm', diff --git a/tabby-terminal/src/hotkeys.ts b/tabby-terminal/src/hotkeys.ts index f315567b8e40b20f4545e57e287287d6a3cc15f6..8fde5f7787aef58b79b32782307b30356d1a1f16 100644 --- a/tabby-terminal/src/hotkeys.ts +++ b/tabby-terminal/src/hotkeys.ts @@ -69,6 +69,10 @@ export class TerminalHotkeyProvider extends HotkeyProvider { id: 'pane-focus-all', name: this.translate.instant('Focus all panes at once (broadcast)'), }, + { + id: 'scroll-to-bottom', + name: this.translate.instant('Scroll terminal to bottom'), + }, ] constructor (private translate: TranslateService) { super() }