marksman
marksman copied to clipboard
Changing wiki.style to "file-stem" should affect the completions preview
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.
..
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) ?
Right.
Right now I cant actually search by file name because the search runs on the first heading name
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.