mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
add keybinds to clear services view & container view
This commit is contained in:
parent
941745668c
commit
2b0539b85f
1 changed files with 16 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ func (b *Binding) GetKey() string {
|
||||||
switch key {
|
switch key {
|
||||||
case 27:
|
case 27:
|
||||||
return "esc"
|
return "esc"
|
||||||
|
case 12:
|
||||||
|
return "Ctrl+L"
|
||||||
case 13:
|
case 13:
|
||||||
return "enter"
|
return "enter"
|
||||||
case 32:
|
case 32:
|
||||||
|
|
@ -185,6 +187,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handleDonate,
|
Handler: gui.handleDonate,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "containers",
|
||||||
|
Key: gocui.KeyCtrlL,
|
||||||
|
Modifier: gocui.ModNone,
|
||||||
|
Handler: wrappedHandler(gui.handleClearMain),
|
||||||
|
Description: gui.Tr.ClearMain,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "containers",
|
ViewName: "containers",
|
||||||
Key: 'd',
|
Key: 'd',
|
||||||
|
|
@ -262,6 +271,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||||
Handler: gui.handleContainersOpenInBrowserCommand,
|
Handler: gui.handleContainersOpenInBrowserCommand,
|
||||||
Description: gui.Tr.OpenInBrowser,
|
Description: gui.Tr.OpenInBrowser,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "services",
|
||||||
|
Key: gocui.KeyCtrlL,
|
||||||
|
Modifier: gocui.ModNone,
|
||||||
|
Handler: wrappedHandler(gui.handleClearMain),
|
||||||
|
Description: gui.Tr.ClearMain,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "services",
|
ViewName: "services",
|
||||||
Key: 'u',
|
Key: 'u',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue