add vim normal hover keybind and fix typo
This commit is contained in:
parent
8004b41eb4
commit
5182756f1d
6 changed files with 7 additions and 6 deletions
|
@ -315,7 +315,7 @@ const cmds_ = struct {
|
||||||
pub fn q(self: *Self, _: Ctx) Result {
|
pub fn q(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit", .{});
|
try self.cmd("quit", .{});
|
||||||
}
|
}
|
||||||
pub const q_meta = .{ .description = "w (quit)" };
|
pub const q_meta = .{ .description = "q (quit)" };
|
||||||
|
|
||||||
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit_without_saving", .{});
|
try self.cmd("quit_without_saving", .{});
|
||||||
|
|
|
@ -667,7 +667,7 @@ const cmds_ = struct {
|
||||||
pub fn q(self: *Self, _: Ctx) Result {
|
pub fn q(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit", .{});
|
try self.cmd("quit", .{});
|
||||||
}
|
}
|
||||||
pub const q_meta = .{ .description = "w (quit)" };
|
pub const q_meta = .{ .description = "q (quit)" };
|
||||||
|
|
||||||
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit_without_saving", .{});
|
try self.cmd("quit_without_saving", .{});
|
||||||
|
|
|
@ -667,7 +667,7 @@ const cmds_ = struct {
|
||||||
pub fn q(self: *Self, _: Ctx) Result {
|
pub fn q(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit", .{});
|
try self.cmd("quit", .{});
|
||||||
}
|
}
|
||||||
pub const q_meta = .{ .description = "w (quit)" };
|
pub const q_meta = .{ .description = "q (quit)" };
|
||||||
|
|
||||||
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit_without_saving", .{});
|
try self.cmd("quit_without_saving", .{});
|
||||||
|
|
|
@ -315,7 +315,7 @@ const cmds_ = struct {
|
||||||
pub fn q(self: *Self, _: Ctx) Result {
|
pub fn q(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit", .{});
|
try self.cmd("quit", .{});
|
||||||
}
|
}
|
||||||
pub const q_meta = .{ .description = "w (quit)" };
|
pub const q_meta = .{ .description = "q (quit)" };
|
||||||
|
|
||||||
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit_without_saving", .{});
|
try self.cmd("quit_without_saving", .{});
|
||||||
|
|
|
@ -209,6 +209,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"})),
|
'o' => self.seq(.{ "smart_insert_line_before", "enter_mode" }, command.fmt(.{"vim/insert"})),
|
||||||
|
'k' => self.cmd("hover", .{}),
|
||||||
|
|
||||||
else => {},
|
else => {},
|
||||||
},
|
},
|
||||||
|
@ -631,7 +632,7 @@ const cmds_ = struct {
|
||||||
pub fn q(self: *Self, _: Ctx) Result {
|
pub fn q(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit", .{});
|
try self.cmd("quit", .{});
|
||||||
}
|
}
|
||||||
pub const q_meta = .{ .description = "w (quit)" };
|
pub const q_meta = .{ .description = "q (quit)" };
|
||||||
|
|
||||||
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit_without_saving", .{});
|
try self.cmd("quit_without_saving", .{});
|
||||||
|
|
|
@ -580,7 +580,7 @@ const cmds_ = struct {
|
||||||
pub fn q(self: *Self, _: Ctx) Result {
|
pub fn q(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit", .{});
|
try self.cmd("quit", .{});
|
||||||
}
|
}
|
||||||
pub const q_meta = .{ .description = "w (quit)" };
|
pub const q_meta = .{ .description = "q (quit)" };
|
||||||
|
|
||||||
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
pub fn @"q!"(self: *Self, _: Ctx) Result {
|
||||||
try self.cmd("quit_without_saving", .{});
|
try self.cmd("quit_without_saving", .{});
|
||||||
|
|
Loading…
Add table
Reference in a new issue