metaseed/metaGo

Multiple characters in metajump

pokey opened this issue · 2 comments

pokey commented

I'm a bit confused about the behaviour of typing multiple characters for metajump. In the screenshot below, I typed "tak", but as you can see, it is annotating lots of locations that only start with 't', rather than the full prefix, and it is leaving out all the places on the left that actually do start with 'tak'. Is this expected behaviour?

image

Fwiw in case you need to see the text under the annotations:

image

Great plugin tho!

let me confirm

it's by design, type one char for navigate within paragraph, 2 chars for current doc, 3 chars for all documents.
if you prefer just type one char, there is a config to use:

"metaGo.jumper.commandsToUseSingleTargetChar":["metaGo.gotoSmart", "metaGo.selectSmart"]

to make the 2 commands use single-target-char: show decorations of all potential locations after user type one target char.