feat: add open recent mode key binding to vim modes
This commit is contained in:
parent
053bf19110
commit
46eb88aaa4
3 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
|
||||||
}
|
}
|
||||||
return switch (modifiers) {
|
return switch (modifiers) {
|
||||||
mod.CTRL => switch (keynormal) {
|
mod.CTRL => switch (keynormal) {
|
||||||
|
'E' => self.cmd("enter_overlay_mode", command.fmt(.{"open_recent"})),
|
||||||
'U' => self.cmd("move_scroll_page_up", .{}),
|
'U' => self.cmd("move_scroll_page_up", .{}),
|
||||||
'D' => self.cmd("move_scroll_page_down", .{}),
|
'D' => self.cmd("move_scroll_page_down", .{}),
|
||||||
'J' => self.cmd("toggle_logview", .{}),
|
'J' => self.cmd("toggle_logview", .{}),
|
||||||
|
|
|
@ -81,6 +81,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
|
||||||
}
|
}
|
||||||
return switch (modifiers) {
|
return switch (modifiers) {
|
||||||
mod.CTRL => switch (keynormal) {
|
mod.CTRL => switch (keynormal) {
|
||||||
|
'E' => self.cmd("enter_overlay_mode", command.fmt(.{"open_recent"})),
|
||||||
'U' => self.cmd("move_scroll_page_up", .{}),
|
'U' => self.cmd("move_scroll_page_up", .{}),
|
||||||
'D' => self.cmd("move_scroll_page_down", .{}),
|
'D' => self.cmd("move_scroll_page_down", .{}),
|
||||||
'R' => self.cmd("redo", .{}),
|
'R' => self.cmd("redo", .{}),
|
||||||
|
|
|
@ -81,6 +81,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
|
||||||
}
|
}
|
||||||
return switch (modifiers) {
|
return switch (modifiers) {
|
||||||
mod.CTRL => switch (keynormal) {
|
mod.CTRL => switch (keynormal) {
|
||||||
|
'E' => self.cmd("enter_overlay_mode", command.fmt(.{"open_recent"})),
|
||||||
'U' => self.cmd("move_scroll_page_up", .{}),
|
'U' => self.cmd("move_scroll_page_up", .{}),
|
||||||
'D' => self.cmd("move_scroll_page_down", .{}),
|
'D' => self.cmd("move_scroll_page_down", .{}),
|
||||||
'R' => self.cmd("redo", .{}),
|
'R' => self.cmd("redo", .{}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue