diff options
| author | DefaultGen <notes.propeller971@slmail.me> | 2024-06-05 04:33:37 -0400 |
|---|---|---|
| committer | DefaultGen <notes.propeller971@slmail.me> | 2024-06-05 04:33:37 -0400 |
| commit | c24731f92478e7c1546a77c70d0309db3d63be13 (patch) | |
| tree | 7aac46eecefdac2d7f0bb72edde37bbeb57ba51d /lua/simple-denote/init.lua | |
| parent | c625270f9d8f156c0c1c32c10e662a68a0fb0694 (diff) | |
| download | simple-denote.nvim-c24731f92478e7c1546a77c70d0309db3d63be13.tar.gz | |
Added signature support
Diffstat (limited to 'lua/simple-denote/init.lua')
| -rw-r--r-- | lua/simple-denote/init.lua | 12 |
1 files changed, 7 insertions, 5 deletions
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 |
