From 71f81cc88f5455b611088b7841e8cda292969d49 Mon Sep 17 00:00:00 2001 From: SpaceOyster Date: Tue, 4 Mar 2025 19:01:42 +0500 Subject: [PATCH 1/2] fixed filtering of diary index file in diary.getDiaryFiles() --- lua/orgWiki/diary.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/orgWiki/diary.lua b/lua/orgWiki/diary.lua index d8bff54..2febcf8 100644 --- a/lua/orgWiki/diary.lua +++ b/lua/orgWiki/diary.lua @@ -61,7 +61,7 @@ local getDiaryfiles = function() local result = {} for _, data in ipairs(list) do - if not string.find(data, "index") then + if not string.find(data, diaryFileName) then if data ~= "" then local ext = vim.fn.fnamemodify(data, ":e") if ext and ext == "org" then From 21e18637bc85ec6e5940de6e618bd254b825374f Mon Sep 17 00:00:00 2001 From: SpaceOyster Date: Fri, 14 Mar 2025 18:43:52 +0500 Subject: [PATCH 2/2] updated `doc/orgWiki.txt` with new `*_filename` options --- doc/orgWiki.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/orgWiki.txt b/doc/orgWiki.txt index 7c87edc..b78825f 100644 --- a/doc/orgWiki.txt +++ b/doc/orgWiki.txt @@ -12,6 +12,8 @@ orgwiki.setup({opts}) *orgwiki.setup* {opts} Table containing configuration options • wiki_path: A list of directories to be recognized as orgWiki • diary_path: A string containing the path to the direcotry where diary entries must be stored + • index_filename* A string containing wiki index file name (default value: `"Index.org"`) + • diary_index_filename: A string containing diary index file name (default value: `"Index.org"`) • keys: optional table with values to set up keybindings. When any of the keys are omitted, default mappings are used • create_or_follow = `""`, -- Follow hyperlink under cursor • traverse_back = `""`, -- Return to the parent file or top of the link stack