-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Line-wrapped links do not work #303
Comments
Can you try adding title = title:gsub("%s*\n", " ") between lines 2122 and 2123 ? just to make sure it works as expected before I push the fix ? |
Thanks for the quick response! That works when I'm on the starting line of the link, but not the second (and syntax highlighting still does not work).
|
Mmmm indeed.
Unfortunately I do not think I have much more time to work on this in the foreseeable future. If you are up to it, you can try fixing this yourself and I will happily review the PR. |
|
Lorem ipsum
[word1] word2 (should get yanked) lorem ipsum Put the cursor anywhere before the ( ... ) and try Just fixed the overwriting of the register 😉 872b83f |
Okay, turns out that the syntax highlighting issue was a very simple fix: the I'll see if I can get something going for the link following-problem. |
Awesome! Thank you very much for your contribution. |
First, thanks for an awesome plugin! 🔥
Please confirm
Describe the bug
Following
[[note links that include newlines]]
does not work, whereas it works as expected for[external links]()
. Similarly, syntax highlighting does not work for such note links, while external links work just fine.To Reproduce
Enter the following in a markdown file and make sure
telekasten.nvim
is loaded.Try to follow the links with the
follow_link()
Telekasten function; the first and third will work, but not the second (the Telescope picker won't even appear). This yields the following error message:Expected behavior
The example link should be followed when using the
follow_link()
Telekasten function, and should also be correctly syntax highlighted.Screenshots
Operating system (please complete the following information):
Additional context
This is important to me because I always format all of my files to have a maximum width of 80 characters, which helps with readability and other stuff. The current functionality forces me into one of two solutions: (1) write my notes such that any internal link happens to land one of continuous line within the maximum line width, or (2) have links exceed the maximum line width. Alternative one adds additional overhead to writing links, since I now have to word the note such that links become formatted on a single line. Both alternatives makes automatic formatting with e.g.
gq
impossible.I'm assuming it's something wrong with the
[[internal links]]
, since[external links]()
work fine?The text was updated successfully, but these errors were encountered: