quarto-dev / quarto-dev/quarto

Feature Request: Open source file editor for current page in preview

Open
#492 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

vscode
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

I would love to be able to navigate my website using quarto preview in the preview window and to be able to open the source file of the current page.

One idea would be to hijack the "Edit this page" feature so that, when clicked on inside VS Code, it actually finds the source file and opens the editor.

I do think I'd prefer to have a gesture (clicking on a link or an injected button, or running a VS Code command) rather than to have this sync by default, but I could see that also being helpful. If syncing were automatic, the source file would open in VS Code's preview mode as I move around in the website preview.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how quarto preview serves the current page and how the existing “Edit this page” gesture is handled inside VS Code. Compare the proposed link, injected-button, command, and automatic-sync approaches, then define one interaction and verify that navigating in the preview opens the corresponding source file.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.