feat: add expand/shrink_selection and select_next/prev_sibling commands

This commit is contained in:
CJ van den Berg 2024-11-25 18:51:37 +01:00
parent 6735d52090
commit b0a1b80acb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 176 additions and 1 deletions

View file

@ -142,6 +142,8 @@ fn map_press(self: *Self, keypress: input.Key, egc: input.Key, modifiers: input.
'S' => self.cmd("filter", command.fmt(.{"sort"})),
'V' => self.cmd("paste", .{}),
'X' => self.cmd("open_command_palette", .{}),
input.key.home => self.cmd("select_prev_sibling", .{}),
input.key.end => self.cmd("select_next_sibling", .{}),
input.key.left => self.cmd("jump_back", .{}),
input.key.right => self.cmd("jump_forward", .{}),
input.key.up => self.cmd("pull_up", .{}),