diff options
| author | DefaultGen <gravel.justness270@slmail.me> | 2024-06-20 20:17:44 -0400 |
|---|---|---|
| committer | DefaultGen <gravel.justness270@slmail.me> | 2024-06-20 20:17:44 -0400 |
| commit | 279acd45dea8aef043a30bc7f3dfdf033d98d3ea (patch) | |
| tree | 9fc8c4e2b59f1475d1da58030213960a0b04345f /lua/simple-denote/api.lua | |
| parent | e25509f7630c824234188dbdbb00d0793580f550 (diff) | |
| download | simple-denote.nvim-279acd45dea8aef043a30bc7f3dfdf033d98d3ea.tar.gz | |
Changed tags to keywords
Diffstat (limited to 'lua/simple-denote/api.lua')
| -rw-r--r-- | lua/simple-denote/api.lua | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lua/simple-denote/api.lua b/lua/simple-denote/api.lua index 05d645a..6a25f4a 100644 --- a/lua/simple-denote/api.lua +++ b/lua/simple-denote/api.lua @@ -4,20 +4,20 @@ local internal = require("simple-denote.internal") ---@param options table ---@param title string|nil ----@param tags table|nil -function M.note(options, title, tags) +---@param keywords table|nil +function M.note(options, title, keywords) if not title then vim.ui.input({ prompt = "Note title: " }, function(input) title = input end) end - if not tags then - vim.ui.input({ prompt = "Tags: " }, function(input) - tags = input + if not keywords then + vim.ui.input({ prompt = "Keywords: " }, function(input) + keywords = input end) end - if not title or not tags then return end - internal.note(options, title, tags) + if not title or not keywords then return end + internal.note(options, title, keywords) end ---@param options table @@ -38,18 +38,18 @@ end ---@param options table ---@param filename string|nil ----@param tags table|nil -function M.tag(options, filename, tags) +---@param keywords table|nil +function M.keyword(options, filename, keywords) if not filename then filename = vim.fn.expand("%") end - if not tags then - vim.ui.input({ prompt = "New tags: " }, function(input) - tags = input + if not keywords then + vim.ui.input({ prompt = "New keywords: " }, function(input) + keywords = input end) end - if not tags then return end - internal.tag(options, filename, tags) + if not keywords then return end + internal.keyword(options, filename, keywords) end ---@param options table |
