feat: simplify the implementation of switch_case and add a flow mode keybind
This commit is contained in:
parent
9c448b14e5
commit
252ad3c269
4 changed files with 10 additions and 21 deletions
|
@ -148,6 +148,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void {
|
|||
'P' => self.cmd("goto_prev_file_or_diagnostic", .{}),
|
||||
'U' => self.cmd("to_upper", .{}),
|
||||
'L' => self.cmd("to_lower", .{}),
|
||||
'C' => self.cmd("switch_case", .{}),
|
||||
'I' => self.cmd("toggle_inputview", .{}),
|
||||
'B' => self.cmd("move_word_left", .{}),
|
||||
'F' => self.cmd("move_word_right", .{}),
|
||||
|
|
|
@ -212,7 +212,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void {
|
|||
'o' => self.seq(.{ "smart_insert_line_before", "enter_mode" }, command.fmt(.{"vim/insert"})),
|
||||
'k' => self.cmd("hover", .{}),
|
||||
|
||||
'`' => self.seq(.{ "switch_case", "move_right_vim" }, .{}),
|
||||
'`' => self.cmd("switch_case", .{}),
|
||||
else => {},
|
||||
},
|
||||
0 => switch (keypress) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue