feat: add command to add cursors to all line ends

This commit is contained in:
CJ van den Berg 2024-03-31 19:57:45 +02:00
parent 8f8d4b6145
commit 4585c5af62
6 changed files with 34 additions and 0 deletions

View file

@ -155,6 +155,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
'F' => self.cmd("filter", command.fmt(.{ "zig", "fmt", "--stdin" })),
'S' => self.cmd("filter", command.fmt(.{ "sort", "-u" })),
'V' => self.cmd("paste", .{}),
'I' => self.cmd("add_cursors_to_line_ends", .{}),
key.LEFT => self.cmd("move_scroll_left", .{}),
key.RIGHT => self.cmd("move_scroll_right", .{}),
else => {},