From e7a9b2317dc578b4b5f80702b65be78d7d343168 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 8 Jan 2022 19:20:51 +0100 Subject: [PATCH] added a "scroll to bottom" hotkey - fixes #1566 --- tabby-terminal/src/api/baseTerminalTab.component.ts | 3 +++ tabby-terminal/src/config.ts | 1 + tabby-terminal/src/hotkeys.ts | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/tabby-terminal/src/api/baseTerminalTab.component.ts b/tabby-terminal/src/api/baseTerminalTab.component.ts index 1bcc4326..a4318b72 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 0c62b744..cc50243d 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 f315567b..8fde5f77 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() } -- GitLab