diff --git a/src/config/Config.zig b/src/config/Config.zig index 906a762b9..a69371dd9 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -3430,7 +3430,7 @@ pub const Keybinds = struct { []const u8, std.fmt.bufPrint( &buf, - "{}={}", + "{}{}", .{ k, v }, ) catch return error.OutOfMemory, ); diff --git a/src/input/Binding.zig b/src/input/Binding.zig index c0850ec94..2e30741f0 100644 --- a/src/input/Binding.zig +++ b/src/input/Binding.zig @@ -800,11 +800,20 @@ pub const Set = struct { _ = opts; switch (self) { - .leader => @panic("TODO"), + .leader => |set| { + // the leader key was already printed. + var iter = set.bindings.iterator(); + while (iter.next()) |binding| { + try writer.print( + ">{s}{s}", + .{ binding.key_ptr.*, binding.value_ptr.* }, + ); + } + }, .action, .action_unconsumed => |action| { // action implements the format - try writer.print("{s}", .{action}); + try writer.print("={s}", .{action}); }, } }