From 4828edf0c44e9749ec82e5e73ffec887e2f4fe6f Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Wed, 25 Mar 2026 08:23:59 +0100 Subject: [PATCH] fix(ui): add missing keymaps to g? help menu toggle_layout (t) and align_move (gm) were bound in view/keymaps.lua but not shown in the keymap help floating window. --- lua/codediff/ui/keymap_help.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/codediff/ui/keymap_help.lua b/lua/codediff/ui/keymap_help.lua index c065b217..15ffe82c 100644 --- a/lua/codediff/ui/keymap_help.lua +++ b/lua/codediff/ui/keymap_help.lua @@ -61,6 +61,10 @@ local function build_sections(keymaps, is_explorer, is_history, is_conflict) table.insert(view_items, { km.unstage_hunk, "Unstage hunk under cursor" }) table.insert(view_items, { km.discard_hunk, "Discard hunk under cursor" }) end + table.insert(view_items, { km.toggle_layout, "Toggle inline/side-by-side layout" }) + if km.align_move then + table.insert(view_items, { km.align_move, "Align moved code block" }) + end table.insert(view_items, { km.hunk_textobject, "Hunk textobject (visual/operator)" }) table.insert(view_items, { km.show_help, "Toggle this help" }) table.insert(sections, section("VIEW", view_items))