posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.85k stars 91 forks source link

Add equivalent functionality from RStudio History pane to Positron #5484

Open petetronic opened 6 days ago

petetronic commented 6 days ago

Discussed in https://github.com/posit-dev/positron/discussions/5480

Originally posted by **mark-andrews** November 23, 2024 Two things that I miss from RStudio that appear to be not present in Positron are the Packages pane and the History pane. I have seen discussions relating to the packages pane functionality, e.g. https://github.com/posit-dev/positron/discussions/4409 https://github.com/posit-dev/positron/issues/1369, but I don't think there has been a discussion about the RStudio history pane functionality. What I find the RStudio history pane most useful for is the "To source" button. Often, I play around in the console. My commands get recorded in history. Eventually, after I have got things working, I move these commands into a script. This is made very easy by browsing though my history in the history pane and selecting and clicking "To source". In Positron, after I play around in the console, I have to do ctrl+R to search through history (which I can also do in RStudio; very handy) and then bring back up commands and then copy and paste. It feels a bit clunky compared to what can be accomplished in the history pane. Are there any thoughts on whether an equivalent of the history pane will be in Positron, or is there some other way that I am not aware of to easily move commands from history into the files being edited?

RStudio History Pane: Image

petetronic commented 6 days ago

Right now, Ctrl+R offers "To Console" behavior, but the user is looking for RStudio's "To Source" behavior that is available from its History pane. In Positron's Console history popup you can copy values with a right or ctrl click context menu, and then paste them into the editor, it's a bit cumbersome.