summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/attach.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-05 14:42:56 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commit482bdc4f1ea5448c5e98697ae66221e544ea40dd (patch)
tree7df478f9870e3dddc85f77d7b77439bed16e3c7b /pkg/gui/controllers/attach.go
parent8e3484d8e98faf12f8395eaf5f9e8381f77a8e52 (diff)
more refactoring
Diffstat (limited to 'pkg/gui/controllers/attach.go')
-rw-r--r--pkg/gui/controllers/attach.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/gui/controllers/attach.go b/pkg/gui/controllers/attach.go
new file mode 100644
index 000000000..008c15505
--- /dev/null
+++ b/pkg/gui/controllers/attach.go
@@ -0,0 +1,10 @@
+package controllers
+
+import "github.com/jesseduffield/lazygit/pkg/gui/types"
+
+func AttachControllers(context types.Context, controllers ...types.IController) {
+ for _, controller := range controllers {
+ context.AddKeybindingsFn(controller.GetKeybindings)
+ context.AddMouseKeybindingsFn(controller.GetMouseKeybindings)
+ }
+}