REditorSupport / REditorSupport/vscode-R

Opening help file in web browser?

Open
#1,324 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

I am using this key binding to open help:

  {
    "key": "ctrl+f1",
    "command": "r.helpPanel.openForSelection",
    "when": "editorTextFocus && editorLangId == 'r' || editorTextFocus && editorLangId == 'rmd' || editorTextFocus && editorLangId == 'quarto'"
  },

Using ctr + f1 when the cursor is over a function, this open the help file in a new panel inside VSCode. Is it possible to open it in a web browser? This is working if I type ?plot in the console.

So I guess the question is more, can I replace "command": "r.helpPanel.openForSelection" with something else so the help page open in my browser?

Thank you in advance

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 with the existing r.helpPanel.openForSelection command and compare it with the behavior seen when entering ?plot in the R console. Trace how the selected function's help page is opened, then make the browser-opening behavior explicit and verify that the same key binding opens help outside VS Code.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.