feat: add clipboard history palette
This commit is contained in:
parent
acb0e16621
commit
634a18cb56
3 changed files with 88 additions and 0 deletions
|
|
@ -1018,6 +1018,11 @@ const cmds = struct {
|
|||
}
|
||||
pub const system_paste_meta: Meta = .{ .description = "Paste from system clipboard" };
|
||||
|
||||
pub fn paste_history(_: *Self, _: Ctx) Result {
|
||||
return try tui.open_overlay(@import("mode/overlay/clipboard_palette.zig").Type);
|
||||
}
|
||||
pub const paste_history_meta: Meta = .{ .description = "Paste from clipboard history" };
|
||||
|
||||
pub fn find_in_files_query(self: *Self, ctx: Ctx) Result {
|
||||
var query: []const u8 = undefined;
|
||||
if (!try ctx.args.match(.{tp.extract(&query)})) return error.InvalidFindInFilesQueryArgument;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue