From c24731f92478e7c1546a77c70d0309db3d63be13 Mon Sep 17 00:00:00 2001 From: DefaultGen Date: Wed, 5 Jun 2024 04:33:37 -0400 Subject: Added signature support --- lua/simple-denote/init.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lua/simple-denote/init.lua') diff --git a/lua/simple-denote/init.lua b/lua/simple-denote/init.lua index 31abb58..b01ca7a 100644 --- a/lua/simple-denote/init.lua +++ b/lua/simple-denote/init.lua @@ -7,17 +7,19 @@ function M.load_cmd(options) vim.api.nvim_create_user_command("Denote", function(opts) if opts.fargs[1] == "note" then api.note(options) - elseif opts.fargs[1] == "retitle" then - api.retitle(options) - elseif opts.fargs[1] == "retag" then - api.retag(options) + elseif opts.fargs[1] == "title" then + api.title(options) + elseif opts.fargs[1] == "tag" then + api.tag(options) + elseif opts.fargs[1] == "signature" then + api.signature(options) else error("Unsupported operation " .. opts.fargs[1]) end end, { nargs = 1, complete = function() - return { "note", "retitle", "retag" } + return { "note", "retitle", "retag", "signature" } end, }) end -- cgit v1.2.3