Skip to content

Commit

Permalink
fix(journal): expand entry path correctly (fixes #780) (#995)
Browse files Browse the repository at this point in the history
Fixes #780
  • Loading branch information
sindrets authored Jul 24, 2023
1 parent 99f33e0 commit e76f0cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/neorg/modules/core/journal/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,9 @@ module.private = {

-- Gets the title from the metadata of a file, must be called in a vim.schedule
local get_title = function(file)
local buffer = vim.fn.bufadd(folder_name .. neorg.configuration.pathsep .. file)
local buffer = vim.fn.bufadd(workspace_path .. neorg.configuration.pathsep .. folder_name .. neorg.configuration.pathsep .. file)
local meta = module.required["core.integrations.treesitter"].get_document_metadata(buffer)
local title = meta["title"]
return title
return meta.title
end

vim.loop.fs_scandir(
Expand Down

0 comments on commit e76f0cb

Please sign in to comment.