1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-06-20 01:19:23 +02:00

Document some of the methods of HasKeybindings

We have some documentation for the corresponding setters in IBaseContext, but
that's part of the controller infrastructure and not client facing. For somebody
implementing a new view, this is where they will probably look for what methods
they can override.
This commit is contained in:
Stefan Haller
2026-03-25 16:35:16 +01:00
parent 72bff90822
commit fe5df2334b
+6
View File
@@ -246,7 +246,13 @@ type (
type HasKeybindings interface {
GetKeybindings(opts KeybindingsOpts) []*Binding
GetMouseKeybindings(opts KeybindingsOpts) []*gocui.ViewMouseBinding
// Implement this to get called when there's a double-click on the view. Only supported by list
// views currently. Will be called after the double-clicked list entry has been selected.
GetOnDoubleClick() func() error
// Implement this in a side-panel controller to get called when there's a click in the main view
// that belongs to your panel while the main view is already focused.
GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error
}