Commit 54a7211 1 parent de40167 commit 54a7211 Copy full SHA for 54a7211
File tree 3 files changed +18
-0
lines changed
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
449
449
Modifier : gocui .ModNone ,
450
450
Handler : gui .scrollRightMain ,
451
451
},
452
+ {
453
+ ViewName : "main" ,
454
+ Key : gocui .KeyCtrlL ,
455
+ Modifier : gocui .ModNone ,
456
+ Handler : wrappedHandler (gui .handleClearMain ),
457
+ Description : gui .Tr .ClearMain ,
458
+ },
452
459
{
453
460
ViewName : "main" ,
454
461
Key : 'h' ,
Original file line number Diff line number Diff line change @@ -111,3 +111,12 @@ func (gui *Gui) handleMainClick() error {
111
111
112
112
return gui .switchFocus (gui .Views .Main )
113
113
}
114
+
115
+ func (gui * Gui ) handleClearMain () error {
116
+ if gui .popupPanelFocused () {
117
+ return nil
118
+ }
119
+
120
+ gui .clearMainView ()
121
+ return nil
122
+ }
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ type TranslationSet struct {
127
127
128
128
LcNextScreenMode string
129
129
LcPrevScreenMode string
130
+ ClearMain string
130
131
FilterPrompt string
131
132
}
132
133
@@ -262,6 +263,7 @@ func englishSet() TranslationSet {
262
263
263
264
LcNextScreenMode : "next screen mode (normal/half/fullscreen)" ,
264
265
LcPrevScreenMode : "prev screen mode" ,
266
+ ClearMain : "clear main panel" ,
265
267
FilterPrompt : "filter" ,
266
268
}
267
269
}
You can’t perform that action at this time.
0 commit comments