This commit is contained in:
zbf 2026-04-19 15:25:30 -05:00 committed by GitHub
commit 05004cb45c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View file

@ -461,6 +461,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Modifier: gocui.ModNone,
Handler: gui.scrollRightMain,
},
{
ViewName: "main",
Key: gocui.KeyCtrlL,
Modifier: gocui.ModNone,
Handler: wrappedHandler(gui.handleClearMain),
Description: gui.Tr.ClearMain,
},
{
ViewName: "filter",
Key: gocui.KeyEnter,

View file

@ -98,6 +98,15 @@ func (gui *Gui) handleExitMain(g *gocui.Gui, v *gocui.View) error {
return gui.returnFocus()
}
func (gui *Gui) handleClearMain() error {
if gui.popupPanelFocused() {
return nil
}
gui.Views.Main.Clear()
return nil
}
func (gui *Gui) handleMainClick() error {
if gui.popupPanelFocused() {
return nil

View file

@ -39,6 +39,7 @@ type TranslationSet struct {
Confirm string
Return string
FocusMain string
ClearMain string
LcFilter string
StopContainer string
RestartingStatus string
@ -167,6 +168,7 @@ func englishSet() TranslationSet {
Return: "return",
FocusMain: "focus main panel",
ClearMain: "clear logs",
LcFilter: "filter list",
Navigate: "navigate",
Execute: "execute",