From bbafcf68a5654ecd57767fd62cda86f1d1e7499b Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 5 Aug 2024 21:39:49 +0200 Subject: [PATCH] feat: add goto_next/prev_file_or_diagnostic bindings to home screen --- src/tui/mode/input/home.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tui/mode/input/home.zig b/src/tui/mode/input/home.zig index 9527c73..8f6fa33 100644 --- a/src/tui/mode/input/home.zig +++ b/src/tui/mode/input/home.zig @@ -80,6 +80,8 @@ fn mapPress(self: *Self, keypress: u32, modifiers: u32) tp.result { else => {}, }, mod.ALT => switch (keynormal) { + 'N' => self.cmd("goto_next_file_or_diagnostic", .{}), + 'P' => self.cmd("goto_prev_file_or_diagnostic", .{}), 'L' => self.cmd("toggle_panel", .{}), 'I' => self.cmd("toggle_inputview", .{}), key.LEFT => self.cmd("jump_back", .{}), @@ -149,4 +151,6 @@ const hints = tui.KeybindHints.initComptime(.{ .{ "theme_prev", "F9" }, .{ "toggle_inputview", "F12, A-i, C-S-i" }, .{ "toggle_panel", "F11, C-j, A-l, C-S-l" }, + .{ "goto_next_file_or_diagnostic", "A-n" }, + .{ "goto_prev_file_or_diagnostic", "A-p" }, });