posit-dev / posit-dev/positron

Close suggestion widget when there is only one suggestion remaining

Open
#4,490 0 comments 0 reactions 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

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).

Kapture 2024-08-22 at 23 50 50

In Positron, this is not the case

Kapture 2024-08-23 at 00 00 27

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.