Skip to content

Commit 74317bc

Browse files
authored
Look for link before looking for date (#409)
1 parent 9719bf3 commit 74317bc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lua/orgmode/org/mappings.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -659,13 +659,12 @@ function OrgMappings:_edit_special_callback()
659659
end
660660

661661
function OrgMappings:open_at_point()
662-
local date = self:_get_date_under_cursor()
663-
if date then
664-
return self.agenda:open_day(date)
665-
end
666-
667662
local link = self:_get_link_under_cursor()
668663
if not link then
664+
local date = self:_get_date_under_cursor()
665+
if date then
666+
return self.agenda:open_day(date)
667+
end
669668
return
670669
end
671670

0 commit comments

Comments
 (0)