tranhl / find-then-jump

Vim Easymotion inspired code navigation.
https://marketplace.visualstudio.com/items?itemName=tranhl.find-then-jump
MIT License
12 stars 4 forks source link

Initiate with current selection #17

Open jalvarado91 opened 4 years ago

jalvarado91 commented 4 years ago

This is a feature suggestion.

Something that I find myself doing is using the initiate command and then searching for a word in the document (usually something already under my cursor) to then get the jump options.

It would be cool if we could maybe add a initiateWithCurrent option that would prefill the text input with the text currently under selection and then let me jump to the matching terms.

I might be able to submit a PR if I find the time. I like the flow of this extension a lot

tranhl commented 4 years ago

That sounds like a great idea. How about implementing that behavior as the default, and then allowing opt-out via configuration?