mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Merge e72d17aeb5 into 7e7aadc207
This commit is contained in:
commit
05004cb45c
3 changed files with 18 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue