Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/orgWiki.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `"<CR>"`, -- Follow hyperlink under cursor
• traverse_back = `"<BS>"`, -- Return to the parent file or top of the link stack
Expand Down
2 changes: 1 addition & 1 deletion lua/orgWiki/diary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down