posit-dev / posit-dev/positron
Close suggestion widget when there is only one suggestion remaining
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
3. Closing suggestions when functions are typed out in full
In RStudio, suggestions automatically close when the functions are typed out in full/when there is only one suggestion that matches exactly (reusing the gif).
In Positron, this is not the case
This is an issue when I just want to type out the name of the function in the console, hit enter and see the source code. In Positron, I would have to get out of the suggestion box somehow, with some effort because of the first issue mentioned above,
or hit enter and delete the parentheses myself, somewhat similar to what is described in #1563.
I would love for us to implement this one! I do find myself doing weird things to try to get out of the suggestion box in this situation.
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 reproducing the R console behavior described in the issue, then read discussion #4442 and issue #1563 for related context. Done means the suggestion widget closes when the typed function is fully matched or only one exact suggestion remains, without requiring extra dismissal or parenthesis deletion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100