refactor: sort flow mode hints

This commit is contained in:
CJ van den Berg 2024-09-25 20:13:01 +02:00
parent 593b202b16
commit 716ff784a6
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -319,6 +319,7 @@ const hints = tui.KeybindHints.initComptime(.{
.{ "add_cursors_to_line_ends", "S-A-i" }, .{ "add_cursors_to_line_ends", "S-A-i" },
.{ "add_cursor_up", "S-A-up" }, .{ "add_cursor_up", "S-A-up" },
.{ "cancel", "esc" }, .{ "cancel", "esc" },
.{ "change_theme", "C-k C-t" },
.{ "close_file", "C-w" }, .{ "close_file", "C-w" },
.{ "close_file_without_saving", "C-S-w" }, .{ "close_file_without_saving", "C-S-w" },
.{ "copy", "C-c" }, .{ "copy", "C-c" },
@ -335,22 +336,20 @@ const hints = tui.KeybindHints.initComptime(.{
.{ "dupe_up", "S-A-d" }, .{ "dupe_up", "S-A-d" },
.{ "enable_fast_scroll", "hold Ctrl" }, .{ "enable_fast_scroll", "hold Ctrl" },
.{ "enable_jump_mode", "hold Alt" }, .{ "enable_jump_mode", "hold Alt" },
.{ "find_in_files", "C-S-f" },
.{ "find", "C-f" },
.{ "goto", "C-g" },
.{ "move_to_char", "C-b, C-t" }, // true/false
.{ "open_file", "C-o" },
.{ "filter", "A-s" }, // self.cmd("filter", command.fmt(.{"sort"})), .{ "filter", "A-s" }, // self.cmd("filter", command.fmt(.{"sort"})),
// .{ "filter", "S-A-s" }, // self.cmd("filter", command.fmt(.{ "sort", "-u" })), // .{ "filter", "S-A-s" }, // self.cmd("filter", command.fmt(.{ "sort", "-u" })),
.{ "find", "C-f" },
.{ "find_in_files", "C-S-f" },
.{ "format", "S-A-f" }, .{ "format", "S-A-f" },
.{ "goto", "C-g" },
.{ "goto_declaration", "A-F12" },
.{ "goto_definition", "F12" }, .{ "goto_definition", "F12" },
.{ "goto_implementation", "C-F12" }, .{ "goto_implementation", "C-F12" },
.{ "goto_declaration", "A-F12" },
.{ "goto_type_definition", "A-S-F12" },
.{ "goto_next_file_or_diagnostic", "A-n" }, .{ "goto_next_file_or_diagnostic", "A-n" },
.{ "goto_next_match", "C-n, F3" }, .{ "goto_next_match", "C-n, F3" },
.{ "goto_prev_file_or_diagnostic", "A-p" }, .{ "goto_prev_file_or_diagnostic", "A-p" },
.{ "goto_prev_match", "C-p, S-F3" }, .{ "goto_prev_match", "C-p, S-F3" },
.{ "goto_type_definition", "A-S-F12" },
.{ "gutter_mode_next", "A-F10" }, .{ "gutter_mode_next", "A-F10" },
.{ "indent", "tab" }, .{ "indent", "tab" },
.{ "insert_line", "A-enter" }, .{ "insert_line", "A-enter" },
@ -372,10 +371,12 @@ const hints = tui.KeybindHints.initComptime(.{
.{ "move_scroll_page_up", "C-pgup" }, .{ "move_scroll_page_up", "C-pgup" },
.{ "move_scroll_right", "S-A-right" }, .{ "move_scroll_right", "S-A-right" },
.{ "move_scroll_up", "C-up" }, .{ "move_scroll_up", "C-up" },
.{ "move_to_char", "C-b, C-t" }, // true/false
.{ "move_up", "up" }, .{ "move_up", "up" },
.{ "move_word_left", "C-left, A-b" }, .{ "move_word_left", "C-left, A-b" },
.{ "move_word_right", "C-right, A-f" }, .{ "move_word_right", "C-right, A-f" },
.{ "open_command_palette", "C-S-p, S-A-p" }, .{ "open_command_palette", "C-S-p, S-A-p" },
.{ "open_file", "C-o" },
.{ "open_recent", "C-e" }, .{ "open_recent", "C-e" },
.{ "open_recent_project", "C-r" }, .{ "open_recent_project", "C-r" },
.{ "paste", "A-v" }, .{ "paste", "A-v" },
@ -403,7 +404,6 @@ const hints = tui.KeybindHints.initComptime(.{
.{ "select_right", "S-right" }, .{ "select_right", "S-right" },
.{ "select_scroll_down", "C-S-down" }, .{ "select_scroll_down", "C-S-down" },
.{ "select_scroll_up", "C-S-up" }, .{ "select_scroll_up", "C-S-up" },
.{ "change_theme", "C-k C-t" },
.{ "select_up", "S-up" }, .{ "select_up", "S-up" },
.{ "select_word_left", "C-S-left" }, .{ "select_word_left", "C-S-left" },
.{ "select_word_right", "C-S-right" }, .{ "select_word_right", "C-S-right" },