posit-dev / positron

Positron, a next-generation data science IDE
Other
2.52k stars 79 forks source link

Quarto: Add an API to set preferred editor (for respecting visual mode preference) #2933

Open jmcphers opened 5 months ago

jmcphers commented 5 months ago

Currently, Quarto cannot set the visual editor as the default. A user can set it here, by right-clicking on a Quarto file .qmd file in the Explorer tab and choosing Open with...:

image

However, extensions can't change these. We want Quarto to have control over this behavior so that it can e.g. respect the editor YAML preference:

---
editor: 
  mode: visual
---

This will likely need to take the form of a Positron API.

petetronic commented 5 months ago

I believe this is related https://github.com/posit-dev/positron/issues/1436

mine-cetinkaya-rundel commented 1 month ago

Just adding that preferred editor information can come from a single document or, in the case of a Quarto project, from the _quarto.yml file.