Closed qwertzui11 closed 1 year ago
I cannot reproduce on my setup. When I insert a link it inserts at the cursor position as expected.
abc|def
-> abc[[mylink]]def
Can someone test that?
If I have i=true
it jumps at the end of the line indeed, this is expected.
Now that you mention it, we should instead always jump after the link rather than directly at the end of the line. I think that the jump to the end of the line was made for when you are pasting the link as you write, so it effectively goes after the link. But this is not really useful when editing a pre-existing sentence.
I cannot reproduce on my setup. When I insert a link it inserts at the cursor position as expected.
abc|def
->abc[[mylink]]def
that's weird. I was afraid, that it's difficult to reproduce. That's why I did a minimal init.lua
. hm. You did test the nvim tag version 0.7.0
?
Yes. I am using nvim 0.7.0
I will try using a minimal init.lua as well when I have some time.
Please confirm
Describe the bug
When I enter insert mode, and then call
telekasten.insert_link()
it's getting inserted after the cursor. eg.abc<cursor>def
--> insert --> becomesabcd[[link]]<cursor>ef
. However in my opinion it should becomeabc[[link]]<cursor>def
. That would be the same behaviour eg like when pressingC-r
to insert from a register.when I use
telekasten.insert_link({i=true})
the link gets added on the wrong position too AND the cursor jumps to the end of the line.https://asciinema.org/a/X2wNICpkOyVJiL8ZphSAm1Yqu
Operating system (please complete the following information):
Additional context
my neovim config