fix: editor paste
This commit is contained in:
parent
279789d4fa
commit
a9e5c5b262
6 changed files with 14 additions and 12 deletions
|
@ -333,10 +333,10 @@ pub fn Create(options: type) type {
|
|||
}
|
||||
pub const mini_mode_select_meta = .{ .description = "Select" };
|
||||
|
||||
pub fn paste(self: *Self, ctx: Ctx) Result {
|
||||
pub fn mini_mode_paste(self: *Self, ctx: Ctx) Result {
|
||||
return mini_mode_insert_bytes(self, ctx);
|
||||
}
|
||||
pub const paste_meta = .{ .arguments = &.{.string} };
|
||||
pub const mini_mode_paste_meta = .{ .arguments = &.{.string} };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -215,8 +215,8 @@ const cmds = struct {
|
|||
}
|
||||
pub const mini_mode_history_next_meta = .{ .description = "History next" };
|
||||
|
||||
pub fn paste(self: *Self, ctx: Ctx) Result {
|
||||
pub fn mini_mode_paste(self: *Self, ctx: Ctx) Result {
|
||||
return mini_mode_insert_bytes(self, ctx);
|
||||
}
|
||||
pub const paste_meta = .{ .arguments = &.{.string} };
|
||||
pub const mini_mode_paste_meta = .{ .arguments = &.{.string} };
|
||||
};
|
||||
|
|
|
@ -153,8 +153,8 @@ const cmds = struct {
|
|||
}
|
||||
pub const mini_mode_delete_backwards_meta = .{ .description = "Delete backwards" };
|
||||
|
||||
pub fn paste(self: *Self, ctx: Ctx) Result {
|
||||
pub fn mini_mode_paste(self: *Self, ctx: Ctx) Result {
|
||||
return mini_mode_insert_bytes(self, ctx);
|
||||
}
|
||||
pub const paste_meta = .{ .arguments = &.{.string} };
|
||||
pub const mini_mode_paste_meta = .{ .arguments = &.{.string} };
|
||||
};
|
||||
|
|
|
@ -340,8 +340,8 @@ const cmds = struct {
|
|||
}
|
||||
pub const overlay_toggle_inputview_meta = .{};
|
||||
|
||||
pub fn paste(self: *Self, ctx: Ctx) Result {
|
||||
pub fn mini_mode_paste(self: *Self, ctx: Ctx) Result {
|
||||
return overlay_insert_bytes(self, ctx);
|
||||
}
|
||||
pub const paste_meta = .{ .arguments = &.{.string} };
|
||||
pub const mini_mode_paste_meta = .{ .arguments = &.{.string} };
|
||||
};
|
||||
|
|
|
@ -465,10 +465,10 @@ pub fn Create(options: type) type {
|
|||
}
|
||||
pub const overlay_toggle_inputview_meta = .{};
|
||||
|
||||
pub fn paste(self: *Self, ctx: Ctx) Result {
|
||||
pub fn mini_mode_paste(self: *Self, ctx: Ctx) Result {
|
||||
return overlay_insert_bytes(self, ctx);
|
||||
}
|
||||
pub const paste_meta = .{ .arguments = &.{.string} };
|
||||
pub const mini_mode_paste_meta = .{ .arguments = &.{.string} };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue