File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ local helps = {
44
44
{ key = ' org_forward_heading_same_level' , description = ' Go to next heading on same level' },
45
45
{ key = ' org_backward_heading_same_level' , description = ' Go to previous heading on same level' },
46
46
{ key = ' outline_up_heading' , description = ' Go to parent heading' },
47
+ { key = ' org_insert_link' , description = ' Insert a hyperlink' },
47
48
{ key = ' org_deadline' , description = ' Insert/Update deadline date' },
48
49
{ key = ' org_schedule' , description = ' Insert/Update scheduled date' },
49
50
{ key = ' org_time_stamp' , description = ' Insert date under cursor' },
Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ function OrgMappings:_insert_heading_from_plain_line(suffix)
707
707
end
708
708
end
709
709
710
- -- Inserts a new link at the cursor position or modifies the link the cursor is
710
+ -- Inserts a new link after the cursor position or modifies the link the cursor is
711
711
-- currently on
712
712
function OrgMappings :insert_link ()
713
713
local link_location = vim .fn .OrgmodeInput (' Links: ' , ' ' )
@@ -734,8 +734,8 @@ function OrgMappings:insert_link()
734
734
target_col = target_col + link .from
735
735
else
736
736
local colnr = vim .fn .col (' .' )
737
- insert_from = colnr - 1
738
- insert_to = colnr
737
+ insert_from = colnr
738
+ insert_to = colnr + 1
739
739
target_col = target_col + colnr
740
740
end
741
741
You can’t perform that action at this time.
0 commit comments