feat: add clipboard history palette

This commit is contained in:
CJ van den Berg 2025-10-13 19:50:04 +02:00
parent acb0e16621
commit 634a18cb56
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 88 additions and 0 deletions

View file

@ -1275,6 +1275,16 @@ const cmds = struct {
@import("mode/helix.zig").deinit();
}
pub const exit_helix_mode_meta: Meta = .{};
pub fn clipboard_delete(self: *Self, ctx: Ctx) Result {
var idx: usize = 0;
if (!try ctx.args.match(.{tp.extract(&idx)}))
return error.InvalidClipboardDeleteArgument;
const clipboard = if (self.clipboard) |*clipboard| clipboard else return;
const removed = clipboard.orderedRemove(idx);
self.allocator.free(removed);
}
pub const clipboard_delete_meta: Meta = .{};
};
pub const MiniMode = struct {