diff --git a/src/keybind/builtin/flow.json b/src/keybind/builtin/flow.json index 79d5ecb..9f91d7c 100644 --- a/src/keybind/builtin/flow.json +++ b/src/keybind/builtin/flow.json @@ -1,14 +1,16 @@ { "project": { "press": [ + ["f1", "open_help"], + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["ctrl+alt+shift+r", "restart"], ["ctrl+e", "find_file"], ["ctrl+shift+n", "create_new_file"], ["ctrl+r", "open_recent_project"], ["ctrl+,", "last_palette"], - ["f1", "open_help"], ["ctrl+\\", "add_split"], ["ctrl+k w", "close_split"], ["ctrl+k x", "toggle_centered_view"], @@ -337,7 +339,9 @@ }, "overlay/palette": { "press": [ + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["alt+f9", "overlay_next_widget_style"], ["alt+!", "add_task"], @@ -417,7 +421,9 @@ }, "mini/numeric": { "press": [ + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["b", "toggle_goto_style"], ["ctrl+q", "quit"], @@ -434,7 +440,9 @@ }, "mini/get_char": { "press": [ + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["ctrl+g", "mini_mode_cancel"], ["ctrl+c", "mini_mode_cancel"], @@ -447,7 +455,9 @@ }, "mini/buffer": { "press": [ + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["ctrl+q", "quit"], ["ctrl+v", "system_paste"], @@ -467,7 +477,9 @@ }, "mini/file_browser": { "press": [ + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["ctrl+q", "quit"], ["ctrl+v", "system_paste"], @@ -493,7 +505,9 @@ }, "mini/find_in_files": { "press": [ + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["alt+f9", "panel_next_widget_style"], ["ctrl+q", "quit"], @@ -527,7 +541,9 @@ }, "mini/find": { "press": [ + ["alt+f1", "toggle_keybind_hints"], ["ctrl+?", "toggle_keybind_hints"], + ["shift+f1", "scroll_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], ["ctrl+q", "quit"], ["ctrl+v", "system_paste"], diff --git a/src/keybind/keybind.zig b/src/keybind/keybind.zig index cd182f8..ca74e25 100644 --- a/src/keybind/keybind.zig +++ b/src/keybind/keybind.zig @@ -827,7 +827,7 @@ const BindingSet = struct { input.key.iso_level_3_shift, input.key.iso_level_5_shift => return, else => {}, }; - log.info("{f} is unbound, press C-? for key hints", .{current_key_event_sequence_fmt()}); + log.info("{f} is unbound, press A-f1 or C-? for key hints", .{current_key_event_sequence_fmt()}); } /// Retrieve bindings that will match a key event sequence diff --git a/src/tui/keyhints.zig b/src/tui/keyhints.zig index cb358b1..2cc5d70 100644 --- a/src/tui/keyhints.zig +++ b/src/tui/keyhints.zig @@ -83,7 +83,7 @@ fn render(mode: *keybind.Mode, bindings: []const keybind.Binding, theme: *const widget_style.border.sie, }) catch {}; top_layer_.cursor_move_yx(@intCast(top_layer_.window.height -| 1), @intCast(4)); - _ = top_layer_.print("{s} C-A-? for more {s}", .{ + _ = top_layer_.print("{s} S-f1 or C-A-? for more {s}", .{ widget_style.border.sib, widget_style.border.sie, }) catch {};