jesseduffield.lazygit/pkg/integration/tests/demo
Stefan Haller 5748d82073 Convert keybinding fields to Keybinding
Until now every keybinding config field was a plain string. That meant a user
couldn't ask for two keys to invoke a command — the config silently accepted
only one form.

Convert every string-typed field across all 13 KeybindingXxxConfig structs to
Keybinding so the union type extends to every command. Defaults wrap their
single-key value in Keybinding{...} so the generated Config.md still renders one
scalar key per binding.

The alt fields keep their separate Binding registrations for now: this commit
does not yet introduce the merge mechanism that folds them into the main field —
that comes in a follow-up. Consumers previously calling opts.GetKeys on a string
field now call opts.GetKeys on the Keybinding, or take .String() / Keys[0] where
a single value is needed.

Adds a Keybinding.String helper for rendering, schema-generator work that
inlines the Keybinding union into each consuming property, and a unit test
covering the user-facing scalar/sequence YAML forms for quit.
2026-05-25 15:32:47 +02:00
..
amend_old_commit.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
bisect.go Default to half-screen mode when filtering files or using the git-arg CLI arg 2025-01-02 16:10:58 +11:00
cherry_pick.go Add number of commits to cherry-pick confirmation prompt 2025-01-08 21:08:42 -08:00
commit_and_push.go Factor out common config setup functions in demo package 2023-08-12 16:52:40 +10:00
commit_graph.go Default to half-screen mode when filtering files or using the git-arg CLI arg 2025-01-02 16:10:58 +11:00
custom_command.go Convert keybinding fields to Keybinding 2026-05-25 15:32:47 +02:00
custom_patch.go Enable hunk staging mode by default 2025-08-01 10:35:16 +02:00
diff_commits.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
filter.go Factor out common config setup functions in demo package 2023-08-12 16:52:40 +10:00
interactive_rebase.go Default to half-screen mode when filtering files or using the git-arg CLI arg 2025-01-02 16:10:58 +11:00
nuke_working_tree.go Default to half-screen mode when filtering files or using the git-arg CLI arg 2025-01-02 16:10:58 +11:00
rebase_onto.go fix: update rebase_onto demo test to match new rebase menu title 2024-06-05 01:38:08 +02:00
shared.go Fix typos 2025-01-03 10:50:36 +11:00
stage_lines.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
undo.go Support range select in rebase actions 2024-01-23 17:23:56 +11:00
worktree_create_from_branches.go Factor out common config setup functions in demo package 2023-08-12 16:52:40 +10:00