positron icon indicating copy to clipboard operation
positron copied to clipboard

Ark: Completions should be sensitive to the text on the RHS of the cursor

Open lionel- opened this issue 1 year ago • 5 comments

From https://github.com/posit-dev/positron-beta/discussions/47

Screen Recording 2024-03-29 at 09 51 35

I think that's annoying enough, and probably not too hard to fix, we'd want to add that to public beta?

lionel- avatar Mar 29 '24 14:03 lionel-

Is this a completions issue that should get added to https://github.com/posit-dev/positron/issues/1603?

juliasilge avatar Apr 01 '24 22:04 juliasilge

I've just added it

lionel- avatar Apr 02 '24 06:04 lionel-

Relatedly, @hadley notes:

can completions use text to the right of the cursor as well as text to the left? i.e. I type build_articles() which doesn’t work because I haven’t loaded pkgdown. So I press up, then cmd + left arrow and type pkgdown:: — that then autocompletes to pkgdown::as_pkgdown()build_articles()

lionel- avatar Apr 19 '24 16:04 lionel-

Is this related to this? Or should I open a new issue.

If I attempt to complete in this state (to the left of brackets

image

and I accept the completion suggestion. This gets inserted image

Also,I can't see help text for parameters on hovering

i.e. try to see the docs for the path argument here. image

Also, when pressing F1 at that location, I get the info message <No R help available at this location>

olivroy avatar Sep 26 '24 16:09 olivroy

We are tracking the extra parentheses being added here: https://github.com/posit-dev/positron/issues/4441

I'm not sure we do have anything about the behavior of F1 inside parentheses, so that would be a new issue but I do notice that RStudio also doesn't bring up Help in that situation.

juliasilge avatar Sep 26 '24 18:09 juliasilge

Can be verified once .ps.ark.version() in R Console reports that ark is at 0.1.193 or above.

jennybc avatar Jun 24 '25 21:06 jennybc

Verified Fixed

Positron Version(s) : 2025.07.0-187 OS Version(s) : MacOS

Test scenario(s)

Confirmed that autocompletions are sensitive to the text on the right and extra parentheses no longer appear.

Link(s) to test cases run or created:

n/a

midleman avatar Jun 25 '25 17:06 midleman