posit-dev / posit-dev/positron

R: Provide option(s) to only match patterns/completions from the beginning of word (different from `editor.suggest.matchOnWordStartOnly`)

Open
#4,489 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area: completions enhancement lang: r support
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,

Kapture 2024-08-22 at 23 50 50

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:

Kapture 2024-08-22 at 23 55 13

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.