jesseduffield.lazygit/pkg/config
Stefan Haller 06b8d5a1e4 Add Keybinding type that accepts a string or a sequence of strings
Each user-configurable keybinding is currently a single string in the YAML
config. To let users assign alternate keys to a command, introduce a Keybinding
type that decodes from either a scalar (the existing single-key form, kept for
backward compatibility and for a simpler config file) or a sequence of strings.
Marshalling collapses single-element slices back to a scalar so configs and
generated docs round-trip cleanly.

JSONSchema describes the type as a oneOf union so editors validate either form;
subsequent commits will inline the union into the generated schema and start
using Keybinding as the field type.
2026-05-25 15:18:18 +02:00
..
app_config.go Change a-enter keybinding to m-enter on mac, and c-enter elsewhere 2026-04-30 22:22:53 +02:00
app_config_test.go Add config migration of paging section to pagers array 2025-10-14 12:17:13 +02:00
config_default_platform.go Clean up build tags 2025-08-14 20:40:44 +02:00
config_linux.go Fix opening links containing ampersands (&) in WSL 2024-12-04 09:43:30 +01:00
config_windows.go Change OpenCommand to Open and OpenLinkCommand to OpenLink 2023-04-13 13:14:00 +02:00
dummies.go Make fields of AppConfig private 2024-08-18 10:24:52 +02:00
editor_presets.go fix(config): add Nushell support for nvim-remote preset 2026-02-07 09:00:10 +01:00
editor_presets_test.go Fix nvim-remote commands for fish shell 2025-04-27 20:12:11 +02:00
keybinding.go Add Keybinding type that accepts a string or a sequence of strings 2026-05-25 15:18:18 +02:00
keybinding_test.go Add Keybinding type that accepts a string or a sequence of strings 2026-05-25 15:18:18 +02:00
keynames.go Use a slice of keys for each binding 2026-05-25 15:18:18 +02:00
keynames_test.go Change keybinding syntax to spell out full modifier names, and use + instead of - 2026-04-30 22:38:53 +02:00
pager_config.go Replace paging config with an array of pagers 2025-10-14 12:17:13 +02:00
user_config.go Remove OptionMenuAlt1 2026-05-25 15:18:18 +02:00
user_config_validation.go Validate that gui.spinner.frames must all have the same width 2026-05-06 18:53:32 +02:00
user_config_validation_test.go Validate that gui.spinner.frames must all have the same width 2026-05-06 18:53:32 +02:00