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

This commit is contained in:
Eugene Pankov 2022-01-08 19:20:51 +01:00
parent 0ab02d032a
commit e7a9b2317d
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
3 changed files with 8 additions and 0 deletions

View file

@ -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
}
})

View file

@ -5,6 +5,7 @@ export class TerminalConfigProvider extends ConfigProvider {
defaults = {
hotkeys: {
'copy-current-path': [],
'scroll-to-bottom': [],
},
terminal: {
frontend: 'xterm',

View file

@ -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() }