From c2084a30c7ba87784f03f806f2b97a6e24a4a297 Mon Sep 17 00:00:00 2001 From: lambtho12 Date: Fri, 21 Jan 2022 14:58:38 +0100 Subject: [PATCH] Refact: better name for make_absolute_path() --- lua/telekasten.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/telekasten.lua b/lua/telekasten.lua index 45007d8..52bbf5d 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -199,7 +199,7 @@ local function escape(s) return string.gsub(s, "[%%%]%^%-$().[*+?]", "%%%1") end -local function make_absolute_path(path) +local function make_config_path_absolute(path) local ret = path if not (Path:new(path):is_absolute()) and path ~= nil then ret = M.Cfg.home .. "/" .. path @@ -2569,10 +2569,10 @@ local function Setup(cfg) end -- Convert all directories in full path - M.Cfg.image_subdir = make_absolute_path(M.Cfg.image_subdir) - M.Cfg.dailies = make_absolute_path(M.Cfg.dailies) - M.Cfg.weeklies = make_absolute_path(M.Cfg.weeklies) - M.Cfg.templates = make_absolute_path(M.Cfg.templates) + M.Cfg.image_subdir = make_config_path_absolute(M.Cfg.image_subdir) + M.Cfg.dailies = make_config_path_absolute(M.Cfg.dailies) + M.Cfg.weeklies = make_config_path_absolute(M.Cfg.weeklies) + M.Cfg.templates = make_config_path_absolute(M.Cfg.templates) end M.find_notes = FindNotes