jesseduffield.lazygit/pkg/integration/tests/custom_commands
Stefan Haller fbcf562e29 Convert custom command Key fields to Keybinding
CustomCommand.Key and CustomCommandMenuOption.Key are user-configured
keybindings just like the built-in ones. Converting them to the Keybinding type
lets a user assign multiple keys to the same custom command, e.g. `key: [a, b]`,
the same way they would for any other keybinding.

The validator iterates over the elements rather than checking a single string,
the binding registration goes through GetValidatedKeyBindingKeys to register
every alternate, and the existing error messages use .String() so a multi-key
binding renders sensibly.

CustomCommandPrompt.Key (a form field name, not a keybinding) stays a plain
string.
2026-05-25 15:32:47 +02:00
..
access_commit_properties.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
basic_command.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
check_for_conflicts.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
conditional_prompt_false_string.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
conditional_prompt_false_value.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
conditional_prompts.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
custom_commands_submenu.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
custom_commands_submenu_with_special_keybindings.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
form_prompts.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
global_context.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
menu_from_command.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
menu_from_commands_output.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
menu_prompt_with_keys.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
multiple_contexts.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
multiple_prompts.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
run_command.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
selected_commit.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
selected_commit_range.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
selected_path.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
selected_submodule.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
show_output_in_panel.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
suggestions_command.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00
suggestions_preset.go Convert custom command Key fields to Keybinding 2026-05-25 15:32:47 +02:00