Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tracked by #4858
jmcphers opened this issue Apr 30, 2024 · 3 comments
Closed
Tracked by #4858
Assignees
Labels
area: quarto Issues related to Quarto category. enhancement New feature or request

Comments

@jmcphers
Copy link
Collaborator

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.

@jmcphers jmcphers added the enhancement New feature or request label Apr 30, 2024
@petetronic
Copy link
Collaborator

I believe this is related #1436

@mine-cetinkaya-rundel
Copy link

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.

@isabelizimm
Copy link
Contributor

I'm going to go ahead and close this issue, since we ended up NOT having to add any new code on the Positron side for supporting preferred editors in the quarto extension. See quarto-dev/quarto#577 for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: quarto Issues related to Quarto category. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants