added a "scroll to bottom" hotkey - fixes #1566

上级 0ab02d03
...@@ -273,6 +273,9 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit ...@@ -273,6 +273,9 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
case 'copy-current-path': case 'copy-current-path':
this.copyCurrentPath() this.copyCurrentPath()
break break
case 'scroll-to-bottom':
this.frontend?.scrollToBottom()
break
} }
}) })
......
...@@ -5,6 +5,7 @@ export class TerminalConfigProvider extends ConfigProvider { ...@@ -5,6 +5,7 @@ export class TerminalConfigProvider extends ConfigProvider {
defaults = { defaults = {
hotkeys: { hotkeys: {
'copy-current-path': [], 'copy-current-path': [],
'scroll-to-bottom': [],
}, },
terminal: { terminal: {
frontend: 'xterm', frontend: 'xterm',
......
...@@ -69,6 +69,10 @@ export class TerminalHotkeyProvider extends HotkeyProvider { ...@@ -69,6 +69,10 @@ export class TerminalHotkeyProvider extends HotkeyProvider {
id: 'pane-focus-all', id: 'pane-focus-all',
name: this.translate.instant('Focus all panes at once (broadcast)'), 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() } constructor (private translate: TranslateService) { super() }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册