vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Allow to open help file in the R view in sidebar

Open EdoardoCostantini opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I work with a single editor, and I use a shortcut to call the help file for a function I am unsure how to use. In all the previous editors/IDEs I've used, the helpfile would open in a side panel/tool window without taking space away from the current editor I was using. In vscode-R, when I use the command "r.helpPanel.openForSelection", the help file opens as a new editor. However, resizing the editor I'm working on distracts me.

Describe the solution you'd like I would like to have a view of the help files that can be placed in the primary sidebar (or any other bar).

Additional context Here is a description of my workflow in screenshots:

  1. I'm working on some script

Step1-setup

  1. I place my cursor on the function I want to call the help file for, press the shortcut associated with the command "r.helpPanel.openForSelection" and the help file appears as an editor.

Screenshot 2022-06-13 at 20 05 44

In my current setup, the editor opens at the bottom and can even hide the code I was reading if it was in the bottom part of the script. Having this editor open to the right of the current editor would still distract me as it would shrink my view of the editor I'm actually working on.

I think it would be great if we could toggle the appearance of the help file in the R view in the primary sidebar. Currently, that view allows to "flag" the visibility of "workspace" and "Help pages." I think it would be great to integrate the actual help file view in this part of the interface. Here is what I'm envisioning:

Screenshot 2022-06-13 at 20 15 32

EdoardoCostantini avatar Jun 13 '22 18:06 EdoardoCostantini