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

@ -43,7 +43,9 @@ pub fn Closure(comptime T: type) type {
f: FunT,
data: T,
///The type signature of commands
const FunT: type = *const fn (T, ctx: Context) Result;
const Self = @This();
pub fn init(f: FunT, data: T, name: []const u8, meta: Metadata) Self {