Files
lazygit/pkg/utils
Stefan HallerandClaude Opus 4.8 d53a9ea854 Add MoveYamlKey helper to move config keys between sections
RenameYamlKey can only rename a key in place, under the same parent. To
migrate a keybinding from one section to another we need to relocate the
key to a different parent mapping, which is a move, not a rename.

MoveYamlKey creates intermediate maps at the destination as needed and
prunes any maps left empty behind the key, so a section that held only
the moved key doesn't linger as an empty mapping in the user's config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 18:53:05 +02:00
..
2025-05-06 09:43:26 +02:00
2025-12-23 16:49:16 +01:00
2023-09-20 08:35:41 +03:00
2025-12-23 16:49:16 +01:00
2022-08-07 11:16:14 +10:00
2025-11-15 10:46:23 +01:00
2022-03-17 19:13:40 +11:00
2025-11-15 10:46:23 +01:00
2022-10-02 20:57:44 -07:00