Files
lazygit/pkg
Stefan Haller 22a508fdba Add menuKey helper to reduce noise on menu item literals
Constructing a menu item key from a literal character requires
gocui.NewKeyRune('r'), which is a bit noisy. Add a private menuKey helper in
both the controllers and helpers packages so the common case in either reads as
menuKey('r'). Duplicating the one-liner is cheaper than a cross-package import
dependency and avoids forcing every controller file to qualify the call.

The reason for doing this now is that we are going to change MenuItem.Key to a
slice of keys later in the branch, which means we'd have to add `[]gocui.Key{`
at each call site, making them even more noisy. With the menuKey helper we can
just change its signature and leave all clients unchanged.
2026-05-25 15:18:18 +02:00
..
2026-05-10 15:28:14 +02:00
2025-05-06 09:43:26 +02:00
2026-05-25 15:18:18 +02:00
2025-11-15 10:46:23 +01:00
2026-05-25 15:18:18 +02:00
2026-05-25 15:18:18 +02:00
2025-11-15 10:46:23 +01:00