aboutsummaryrefslogtreecommitdiff
path: root/lua/simple-denote.lua
diff options
context:
space:
mode:
authorhistoria <gravel.justness270@slmail.me>2024-08-14 15:52:14 -0400
committerhistoria <gravel.justness270@slmail.me>2024-08-14 15:52:14 -0400
commit64b58e667d0d255439b055227f1f11012fcc9006 (patch)
tree9ce5c173ff05af0e647a4a00b04c59e54c701fa3 /lua/simple-denote.lua
parent8da26902f526a54c8873d16d1b7b6e7820fb293b (diff)
downloadsimple-denote.nvim-64b58e667d0d255439b055227f1f11012fcc9006.tar.gz
Feature: Command to change file extension
Diffstat (limited to 'lua/simple-denote.lua')
-rw-r--r--lua/simple-denote.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/simple-denote.lua b/lua/simple-denote.lua
index 8ac2193..5709e3a 100644
--- a/lua/simple-denote.lua
+++ b/lua/simple-denote.lua
@@ -12,14 +12,16 @@ function M.load_cmd(options)
elseif opts.fargs[1] == "keywords" then
api.keywords(options)
elseif opts.fargs[1] == "signature" then
- api.signature(options)
+ api.signature()
+ elseif opts.fargs[1] == "extension" then
+ api.extension()
else
error("Unsupported operation " .. opts.fargs[1])
end
end, {
nargs = 1,
complete = function()
- return { "note", "title", "keywords", "signature" }
+ return { "note", "title", "keywords", "signature", "extension" }
end,
})
end