parent
75fa4408fa
commit
09bb80b268
3 changed files with 19 additions and 3 deletions
|
|
@ -1,14 +1,16 @@
|
||||||
{
|
{
|
||||||
"project": {
|
"project": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["f1", "open_help"],
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+shift+r", "restart"],
|
["ctrl+alt+shift+r", "restart"],
|
||||||
["ctrl+e", "find_file"],
|
["ctrl+e", "find_file"],
|
||||||
["ctrl+shift+n", "create_new_file"],
|
["ctrl+shift+n", "create_new_file"],
|
||||||
["ctrl+r", "open_recent_project"],
|
["ctrl+r", "open_recent_project"],
|
||||||
["ctrl+,", "last_palette"],
|
["ctrl+,", "last_palette"],
|
||||||
["f1", "open_help"],
|
|
||||||
["ctrl+\\", "add_split"],
|
["ctrl+\\", "add_split"],
|
||||||
["ctrl+k w", "close_split"],
|
["ctrl+k w", "close_split"],
|
||||||
["ctrl+k x", "toggle_centered_view"],
|
["ctrl+k x", "toggle_centered_view"],
|
||||||
|
|
@ -337,7 +339,9 @@
|
||||||
},
|
},
|
||||||
"overlay/palette": {
|
"overlay/palette": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["alt+f9", "overlay_next_widget_style"],
|
["alt+f9", "overlay_next_widget_style"],
|
||||||
["alt+!", "add_task"],
|
["alt+!", "add_task"],
|
||||||
|
|
@ -417,7 +421,9 @@
|
||||||
},
|
},
|
||||||
"mini/numeric": {
|
"mini/numeric": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["b", "toggle_goto_style"],
|
["b", "toggle_goto_style"],
|
||||||
["ctrl+q", "quit"],
|
["ctrl+q", "quit"],
|
||||||
|
|
@ -434,7 +440,9 @@
|
||||||
},
|
},
|
||||||
"mini/get_char": {
|
"mini/get_char": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["ctrl+g", "mini_mode_cancel"],
|
["ctrl+g", "mini_mode_cancel"],
|
||||||
["ctrl+c", "mini_mode_cancel"],
|
["ctrl+c", "mini_mode_cancel"],
|
||||||
|
|
@ -447,7 +455,9 @@
|
||||||
},
|
},
|
||||||
"mini/buffer": {
|
"mini/buffer": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["ctrl+q", "quit"],
|
["ctrl+q", "quit"],
|
||||||
["ctrl+v", "system_paste"],
|
["ctrl+v", "system_paste"],
|
||||||
|
|
@ -467,7 +477,9 @@
|
||||||
},
|
},
|
||||||
"mini/file_browser": {
|
"mini/file_browser": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["ctrl+q", "quit"],
|
["ctrl+q", "quit"],
|
||||||
["ctrl+v", "system_paste"],
|
["ctrl+v", "system_paste"],
|
||||||
|
|
@ -493,7 +505,9 @@
|
||||||
},
|
},
|
||||||
"mini/find_in_files": {
|
"mini/find_in_files": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["alt+f9", "panel_next_widget_style"],
|
["alt+f9", "panel_next_widget_style"],
|
||||||
["ctrl+q", "quit"],
|
["ctrl+q", "quit"],
|
||||||
|
|
@ -527,7 +541,9 @@
|
||||||
},
|
},
|
||||||
"mini/find": {
|
"mini/find": {
|
||||||
"press": [
|
"press": [
|
||||||
|
["alt+f1", "toggle_keybind_hints"],
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
|
["shift+f1", "scroll_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
["ctrl+q", "quit"],
|
["ctrl+q", "quit"],
|
||||||
["ctrl+v", "system_paste"],
|
["ctrl+v", "system_paste"],
|
||||||
|
|
|
||||||
|
|
@ -827,7 +827,7 @@ const BindingSet = struct {
|
||||||
input.key.iso_level_3_shift, input.key.iso_level_5_shift => return,
|
input.key.iso_level_3_shift, input.key.iso_level_5_shift => return,
|
||||||
else => {},
|
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
|
/// Retrieve bindings that will match a key event sequence
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ fn render(mode: *keybind.Mode, bindings: []const keybind.Binding, theme: *const
|
||||||
widget_style.border.sie,
|
widget_style.border.sie,
|
||||||
}) catch {};
|
}) catch {};
|
||||||
top_layer_.cursor_move_yx(@intCast(top_layer_.window.height -| 1), @intCast(4));
|
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.sib,
|
||||||
widget_style.border.sie,
|
widget_style.border.sie,
|
||||||
}) catch {};
|
}) catch {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue