jesseduffield.lazygit/pkg/integration/tests/worktree
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
..
add_from_branch.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
add_from_branch_detached.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
add_from_commit.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
associate_branch_bisect.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
associate_branch_rebase.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
bare_repo.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
bare_repo_worktree_config.go Fix typos 2025-01-03 10:50:36 +11:00
crud.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00
custom_command.go Convert keybinding fields to Keybinding 2026-05-25 15:32:47 +02:00
detach_worktree_from_branch.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
dotfile_bare_repo.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00
double_nested_linked_submodule.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
exclude_file_in_worktree.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00
fast_forward_worktree_branch.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
fast_forward_worktree_branch_should_not_pollute_current_worktree.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
force_remove_worktree.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00
force_remove_worktree_with_submodules.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00
remove_worktree_from_branch.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
reset_window_tabs.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00
symlink_into_repo_subdir.go Use getters for AppState and UserConfig instead of accessing the fields directly 2024-08-18 10:24:52 +02:00
worktree_in_repo.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00