mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix: (WIP) allow following line-split links on the first line (#309)
Currently only works when the cursor is on the first line. This PR must be followed by a second one that would make it work when the cursor is on the second line. However, this requires significantly more work.
This commit is contained in:
@@ -2122,6 +2122,7 @@ local function FollowLink(opts)
|
||||
vim.cmd("normal yi]")
|
||||
title = vim.fn.getreg('"0')
|
||||
title = title:gsub("^(%[)(.+)(%])$", "%2")
|
||||
title = title:gsub("%s*\n", " ")
|
||||
title = linkutils.remove_alias(title)
|
||||
else
|
||||
-- we are in an external [link]
|
||||
|
||||
Reference in New Issue
Block a user