refactor: move clipboard_history command to tui module

This commit is contained in:
CJ van den Berg 2025-10-13 20:00:09 +02:00
parent acbf435a2e
commit 99c28b8102
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 6 additions and 6 deletions

View file

@ -1018,11 +1018,6 @@ 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;

View file

@ -1276,6 +1276,11 @@ const cmds = struct {
}
pub const exit_helix_mode_meta: Meta = .{};
pub fn clipboard_history(_: *Self, _: Ctx) Result {
return try open_overlay(@import("mode/overlay/clipboard_palette.zig").Type);
}
pub const clipboard_history_meta: Meta = .{ .description = "Paste from clipboard history" };
pub fn clipboard_delete(self: *Self, ctx: Ctx) Result {
var idx: usize = 0;
if (!try ctx.args.match(.{tp.extract(&idx)}))