posit-dev / positron

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

Feature request: add more JSON prompts in the workbench settings to allow distinguishing of sent and received code and output #5115

Open anbrav0 opened 1 month ago

anbrav0 commented 1 month ago

as discussed in: #5069

System details:

Positron and OS details:

Positron Version: 2024.11.0 (Universal) build 69
Code - OSS Version: 1.93.0
Commit: 4cde19a003d09cf75114ec8650020b132bbc5554
Date: 2024-10-21T02:48:15.195Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

Interpreter details:

R 4.4.1

Describe the issue:

Console does not color distinguish code prompts sent and received to the console.

Steps to reproduce the issue:

  1. First, install.packages("palmerpenguins") and install.packages("tidyverse") in Rstudio and Positron
  2. In positron and Rstudios, send to the console penguins_raw |> select(Species, Island, Region)
  3. Observe output in Console in both Rstudios and Positron

Rstudio output: Image

Positron output: Image

Expected or desired behavior:

Positron settings JSON file should have a bit more extensive customization of console output to mimic similar console output behavior to Rstudios. Similar to how you can currently call "positronConsole.foreground": "#dec5f0dc" in the settings JSON, to customize the console text color, there should be an option to call, or be able to customize the console output to better differentiate the different objects sent and returned on the console for streamline workflow similar to Rstudios behavior when sending and receiving from the console.

Image

Were there any error messages in the UI, Output panel, or Developer Tools console?

NA

sharon-wang commented 1 month ago

Thank you @anbrav0 for this suggestion! I've marked it for Triage :)

jmcphers commented 1 month ago

Related: https://github.com/posit-dev/positron/issues/243