tth05 / obsidian-completr

Auto-completion plugin for the obsidian editor.
MIT License
291 stars 18 forks source link

[FR] either prioritize words in current file or allow current-only file provider #36

Closed huyz closed 1 year ago

huyz commented 1 year ago

In Vim, I'm used to completing on nearby words using Ctrl+N and Ctrl+P. It's much more likely that I would want to repeat the words that are around in the same file and especially around the cursor. To get something similar, I think I would need the word list to prioritize words in the current file over words in other files.

Or, even easier to implement, allow me to enable the file scanner/provider but allow me to limit it to just the current file.

tth05 commented 1 year ago

Basically like #19. Prioritization is also planned.

huyz commented 1 year ago

Ah I figured out what the type of completion is called: "Hippie completion" https://www.jetbrains.com/go/guide/tips/cyclic-expand-word/