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,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.scrollRightMain,
|
Handler: gui.scrollRightMain,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "main",
|
||||||
|
Key: gocui.KeyCtrlL,
|
||||||
|
Modifier: gocui.ModNone,
|
||||||
|
Handler: wrappedHandler(gui.handleClearMain),
|
||||||
|
Description: gui.Tr.ClearMain,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "filter",
|
ViewName: "filter",
|
||||||
Key: gocui.KeyEnter,
|
Key: gocui.KeyEnter,
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,15 @@ func (gui *Gui) handleExitMain(g *gocui.Gui, v *gocui.View) error {
|
||||||
return gui.returnFocus()
|
return gui.returnFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (gui *Gui) handleClearMain() error {
|
||||||
|
if gui.popupPanelFocused() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
gui.Views.Main.Clear()
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (gui *Gui) handleMainClick() error {
|
func (gui *Gui) handleMainClick() error {
|
||||||
if gui.popupPanelFocused() {
|
if gui.popupPanelFocused() {
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ type TranslationSet struct {
|
||||||
Confirm string
|
Confirm string
|
||||||
Return string
|
Return string
|
||||||
FocusMain string
|
FocusMain string
|
||||||
|
ClearMain string
|
||||||
LcFilter string
|
LcFilter string
|
||||||
StopContainer string
|
StopContainer string
|
||||||
RestartingStatus string
|
RestartingStatus string
|
||||||
|
|
@ -167,6 +168,7 @@ func englishSet() TranslationSet {
|
||||||
|
|
||||||
Return: "return",
|
Return: "return",
|
||||||
FocusMain: "focus main panel",
|
FocusMain: "focus main panel",
|
||||||
|
ClearMain: "clear logs",
|
||||||
LcFilter: "filter list",
|
LcFilter: "filter list",
|
||||||
Navigate: "navigate",
|
Navigate: "navigate",
|
||||||
Execute: "execute",
|
Execute: "execute",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue