summaryrefslogtreecommitdiff
path: root/src/cli/list_keybinds.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2024-10-05 10:13:33 -1000
committerMitchell Hashimoto <m@mitchellh.com>2024-10-05 10:13:39 -1000
commite9f1fe327f2a06ddaa817b9f12486ba71bdd7ec5 (patch)
tree0e126af1da183dc91e95d578be83c6c9844e8baf /src/cli/list_keybinds.zig
parentb9fa6b1b83aee18551735e7ecff15c97a8a5f409 (diff)
cli/list-keybinds: output function modifier
Diffstat (limited to 'src/cli/list_keybinds.zig')
-rw-r--r--src/cli/list_keybinds.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cli/list_keybinds.zig b/src/cli/list_keybinds.zig
index 9e734d1ec..5cfaeef02 100644
--- a/src/cli/list_keybinds.zig
+++ b/src/cli/list_keybinds.zig
@@ -133,6 +133,7 @@ fn prettyPrint(alloc: Allocator, keybinds: Config.Keybinds) !u8 {
const ctrl_style: vaxis.Style = .{ .fg = .{ .index = 2 } };
const alt_style: vaxis.Style = .{ .fg = .{ .index = 3 } };
const shift_style: vaxis.Style = .{ .fg = .{ .index = 4 } };
+ const fn_style: vaxis.Style = .{ .fg = .{ .index = 5 } };
var longest_col: usize = 0;
@@ -142,6 +143,10 @@ fn prettyPrint(alloc: Allocator, keybinds: Config.Keybinds) !u8 {
var result: vaxis.Window.PrintResult = .{ .col = 0, .row = 0, .overflow = false };
const trigger = bind.trigger;
+ if (trigger.mods.function) {
+ result = try win.printSegment(.{ .text = "fn ", .style = fn_style }, .{ .col_offset = result.col });
+ result = try win.printSegment(.{ .text = " + " }, .{ .col_offset = result.col });
+ }
if (trigger.mods.super) {
result = try win.printSegment(.{ .text = "super", .style = super_style }, .{ .col_offset = result.col });
result = try win.printSegment(.{ .text = " + " }, .{ .col_offset = result.col });