posit-dev / posit-dev/positron
R: Provide option(s) to only match patterns/completions from the beginning of word (different from `editor.suggest.matchOnWordStartOnly`)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Description
Discussed in https://github.com/posit-dev/positron/discussions/4442
Originally posted by FinYang August 22, 2024
2. Matching the beginning of the suggestions
In RStudio, only suggestions that matches from the beginning are included,
but in Positron, the only option is to "Match On Word Start", so if the suggestion has multiple words separated by dots or with camel case, suggestions matched from the middle will also be included:
That's just too much for me. It would be great if there is an option to disable this.
This is likely not something we will invest in any time soon, but we can collect feedback on it here. 👍
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading discussion #4442 and comparing the requested behavior with the existing editor.suggest.matchOnWordStartOnly setting. Define how matching from the beginning should interact with dots and camel case, then identify the relevant suggestion-matching code and tests. Done means the new option is documented, behaves like the requested RStudio-style matching, and has coverage for the reported cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100