marksman icon indicating copy to clipboard operation
marksman copied to clipboard

Changing wiki.style to "file-stem" should affect the completions preview

Open Feel-ix-343 opened this issue 2 years ago • 4 comments

Using neovim with version 2023-7-25

here is my .marksman.toml

[code_action]
# Enable/disable "Table of Contents" code action
toc.enable = false

[completion]
# The style of wiki links completion.
# Other values include: 
# * "file-stem" to complete using file name without an extension,
# * "file-path-stem" same as above but using file path.
wiki.style = "file-stem"

located in project root.

When the completion is selected, it will use the file name, but in the preview, it is only using the #{heading} in the file.

I would prefer that the file name is shown in the preview.

Feel-ix-343 avatar Sep 02 '23 16:09 Feel-ix-343

..

Feel-ix-343 avatar Sep 14 '23 22:09 Feel-ix-343

Hey @Feel-ix-343. So, what you're saying is that the inserted completions are correct, but in the preview you want label and detail to switch places depending on the completion style (see img) ? Screenshot 2023-09-15 at 10 13 49

artempyanykh avatar Sep 15 '23 09:09 artempyanykh

Right.

Right now I cant actually search by file name because the search runs on the first heading name

Feel-ix-343 avatar Sep 15 '23 11:09 Feel-ix-343

Yeah, ok. My workflow's a bit different but I see how this can makes sense. Anyhow, I'm a bit busy now and it may take a while before I get to this. But if somebody submits a PR meantime I'd be happy to review it! The changes should be fairly straightforward.

artempyanykh avatar Sep 15 '23 14:09 artempyanykh