mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-24 16:11:04 +00:00
Merge f8bcff18d6 into 7e7aadc207
This commit is contained in:
commit
e0b6dd5bfd
3 changed files with 18 additions and 0 deletions
|
|
@ -449,6 +449,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: "main",
|
ViewName: "main",
|
||||||
Key: 'h',
|
Key: 'h',
|
||||||
|
|
|
||||||
|
|
@ -111,3 +111,12 @@ func (gui *Gui) handleMainClick() error {
|
||||||
|
|
||||||
return gui.switchFocus(gui.Views.Main)
|
return gui.switchFocus(gui.Views.Main)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (gui *Gui) handleClearMain() error {
|
||||||
|
if gui.popupPanelFocused() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
gui.clearMainView()
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,7 @@ type TranslationSet struct {
|
||||||
|
|
||||||
LcNextScreenMode string
|
LcNextScreenMode string
|
||||||
LcPrevScreenMode string
|
LcPrevScreenMode string
|
||||||
|
ClearMain string
|
||||||
FilterPrompt string
|
FilterPrompt string
|
||||||
|
|
||||||
FocusProjects string
|
FocusProjects string
|
||||||
|
|
@ -271,6 +272,7 @@ func englishSet() TranslationSet {
|
||||||
|
|
||||||
LcNextScreenMode: "next screen mode (normal/half/fullscreen)",
|
LcNextScreenMode: "next screen mode (normal/half/fullscreen)",
|
||||||
LcPrevScreenMode: "prev screen mode",
|
LcPrevScreenMode: "prev screen mode",
|
||||||
|
ClearMain: "clear main panel",
|
||||||
FilterPrompt: "filter",
|
FilterPrompt: "filter",
|
||||||
|
|
||||||
FocusProjects: "focus projects panel",
|
FocusProjects: "focus projects panel",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue