Skip to content

Commit 2c95512

Browse files
committedMar 14, 2025
fix(links): Allow storing links from agenda with org_use_id enabled
1 parent 8b4555b commit 2c95512

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎lua/orgmode/org/global.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ local build = function(orgmode)
8888
require('orgmode.utils').echo_error('No headline found')
8989
return
9090
end
91-
orgmode.links:store_link_to_headline(headline)
91+
headline.file
92+
:update(function()
93+
orgmode.links:store_link_to_headline(headline)
94+
end)
95+
:wait()
9296
return require('orgmode.utils').echo_info('Stored: ' .. headline:get_title())
9397
end,
9498
indent_mode = function()

0 commit comments

Comments
 (0)