randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

Autocomplition of `::` items does not work with help function: `?` #478

Open ltuijnder opened 1 month ago

ltuijnder commented 1 month ago

When typing in the console: {packageName}:: one then gets a list of items within the package namespace to possibly autocomplete on. Super handy!

Often when I am interactive developing I also want to check the documentation of a package function. So I start typing ? and then {packageName}:: but now the autocompletion does not show up. And when I start typing it as if it "reset" and starts autocompleting again on general items. See the screenshot example below:

Screenshots:

without ?

Correct autocompletion when typing tinytest::test image

With ?:

After typing ?tinytest::test it starts autocompletion only based on the word "test" and it wants to autocomplete on the installed package testthat:

image

My current workaround is for me to type the literal ? function call:

`?`({packageName}::)

Probably the weird syntax of ? is making the autocompletion break.