mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
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. |
||
|---|---|---|
| .. | ||
| app_config.go | ||
| app_config_test.go | ||
| config_default_platform.go | ||
| config_linux.go | ||
| config_windows.go | ||
| dummies.go | ||
| editor_presets.go | ||
| editor_presets_test.go | ||
| keybinding.go | ||
| keybinding_test.go | ||
| keynames.go | ||
| keynames_test.go | ||
| pager_config.go | ||
| user_config.go | ||
| user_config_validation.go | ||
| user_config_validation_test.go | ||