From 279acd45dea8aef043a30bc7f3dfdf033d98d3ea Mon Sep 17 00:00:00 2001 From: DefaultGen Date: Thu, 20 Jun 2024 20:17:44 -0400 Subject: Changed tags to keywords --- lua/simple-denote/api.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'lua/simple-denote/api.lua') 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 -- cgit v1.2.3