feat: add more vim keybinds

This is a combination of 6 commits.

- added a new command
- change dd to use cut
- add prototypes for A I o O commands
- fixed keybind test compilation bug
- add keybinds for the new enter_mode commands
- added prototype for copy line
This commit is contained in:
Robert Burnett 2024-11-21 17:57:17 -06:00 committed by CJ van den Berg
parent 0a75e04c3a
commit c909a2a50a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 87 additions and 3 deletions

View file

@ -325,7 +325,7 @@ const Binding = struct {
pub const KeybindHints = std.StringHashMapUnmanaged([]u8);
const max_key_sequence_time_interval = 750;
const max_key_sequence_time_interval = 1500;
const max_input_buffer_size = 4096;
var globals: struct {
@ -678,6 +678,8 @@ const match_test_cases = .{
.{ "<C-x><C-c>", "<C-x><C-c>", .matched },
.{ "<C-x><A-a>", "<C-x><A-a><Tab>", .match_possible },
.{ "<C-o>", "<C-o>", .matched },
.{ "<S-'><S-->dd", "<S-'><S-->dd", .matched },
.{ "<S-'><S-->dd", "<S-'><S-->da", .match_impossible },
};
test "match" {