Skip to content

Commit

Permalink
fix: update orgmode db on roam node creation
Browse files Browse the repository at this point in the history
To make a new roam node accessible for refiling, searching and agenda
the org files need to be loaded again.
  • Loading branch information
Sebastian Flügge committed Sep 19, 2024
1 parent 192732a commit c8b4d7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/org-roam/database/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ function M:load_file(opts)
insert_new_file_into_database(db, file, {
force = opts.force or file.metadata.changedtick ~= changedtick,
})

require("orgmode").files:load(true)
end

resolve({
Expand Down

0 comments on commit c8b4d7e

Please sign in to comment.