From 600c9c7bb626c23938ffed1ab74492394f3e28df Mon Sep 17 00:00:00 2001 From: DefaultGen Date: Thu, 20 Jun 2024 19:56:55 -0400 Subject: Changed tags to keywords --- lua/denote-fzf-lua.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lua/denote-fzf-lua.lua') diff --git a/lua/denote-fzf-lua.lua b/lua/denote-fzf-lua.lua index 846361d..180de4a 100644 --- a/lua/denote-fzf-lua.lua +++ b/lua/denote-fzf-lua.lua @@ -63,7 +63,7 @@ end ---Format the --with-nth argument for fzf (which fields are shown) function M.format_fzf_with_nth(options) local fzf_with_nth = "" - local fields = {"path", "date", "time", "sig", "title", "tags", "ext" } + local fields = {"path", "date", "time", "sig", "title", "keywords", "ext" } for i, v in ipairs(fields) do if options.search_fields[v] then fzf_with_nth = fzf_with_nth .. i .. ',' @@ -88,12 +88,12 @@ function M.recombine_filename(filename) vim.print(filename) local t = {} filename = filename:gsub("%s%s+", "|") - t.path, t.year, t.month, t.day, t.hour, t.min, t.sec, t.sig, t.title, t.tags, t.ext = + t.path, t.year, t.month, t.day, t.hour, t.min, t.sec, t.sig, t.title, t.keywords, t.ext = filename:match("^(.*/)|(%d%d%d%d)%-(%d%d)%-(%d%d)|(%d%d):(%d%d):(%d%d)|([^|]+)|([^|]+)|([^|]+)|(%..+)") - t.sig = M.repopulate_field(t.sig,"=") - t.title = M.repopulate_field(t.title,"-") - t.tags = M.repopulate_field(t.tags,"_") - return t.path .. t.year .. t.month .. t.day .. "T" .. t.hour .. t.min .. t.sec .. t.sig .. t.title .. t.tags .. t.ext + t.sig = M.repopulate_field(t.sig,"=") + t.title = M.repopulate_field(t.title,"-") + t.keywords = M.repopulate_field(t.keywords,"_") + return t.path .. t.year .. t.month .. t.day .. "T" .. t.hour .. t.min .. t.sec .. t.sig .. t.title .. t.keywords .. t.ext end ---@param options table of user options -- cgit v1.2.3