marksman icon indicating copy to clipboard operation
marksman copied to clipboard

Link completion inserts unwanted characters

Open gutteringHearthplace opened this issue 2 years ago • 1 comments

Editor: nvim + mason/lspconfig

I think this might actually be both a bug and a feature request, though I'm not familiar enough with Marksman to tell for sure. When I use the LSP's link-completion feature, I get %20 in the filename text instead of a space. Is this the intended behavior (website deployment?), or have I got a bug somewhere in my config?

Additionally, I've been trying to utilize the generated links as a personal wiki- and the root character just evaluates to the computer's root folder in many of the link-following plugins I've been trying to use. Is there any way to alter the character that's inserted?

.marksman.toml:

[completion]
wiki.style = "file-stem"

[link-name](boil... --> Expected: [link-name](boil blood.md) Actual: [link-name](/boil%20blood.md)

gutteringHearthplace avatar Feb 06 '24 03:02 gutteringHearthplace

hi,

this is how you encode spaces in markdown when you can't represent them. a way to avoid them is to enclose the filename in angle brackets (<>).

in your case that would be: [link-name](<boil blood.md>)

angelidis avatar Mar 09 '24 13:03 angelidis