rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.59k stars 1.08k forks source link

Make "Add Column" more accessible. #14666

Open t-kalinowski opened 1 month ago

t-kalinowski commented 1 month ago

Currently, adding a source editor column requires 5 precise mouse clicks (Tools => Global Options => Pane Layout => Add Column => OK).

This is such a common action for me when working on a big screen, I wish it was a button in the toolbar

image

It could also make sense as a right click context action "Move to Column" when clicking on the editor tab

image

Or even clicking and dragging the tab and hovering on the left border could open a column.

image

ronblum commented 1 month ago

@t-kalinowski There's another method that only takes three steps, with less precision: View -> Panes -> Add Source Column. Which is still two steps more than you're asking for, though.

t-kalinowski commented 1 month ago

:facepalm: And now I see the keyboard shortcut too, Ctrl+F7.

Thank you!

I still think one of the other ways suggested would be good to add, for discoverability.

kevinushey commented 1 month ago

There's also the command palette; e.g. Cmd + Shift + P, which (while requiring more typing) is at least more accessible and memorable than Ctrl + F7 as a shortcut.

jthomasmock commented 1 month ago

Yah I use the command palette to do this:

Image