posit-dev / posit-dev/positron
Quarto authoring: losing typing cursor focus when using "render on save"
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
System details:
Positron and OS details:
Positron Version: 2025.12.0 build 105
Code - OSS Version: 1.105.0
Commit: 98537e9935afc48311e32033c6518a3c89829789
Date: 2025-11-20T07:18:54.863Z
Electron: 37.6.0
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0
Describe the issue:
When authoring a Quarto document (in "Source" mode), using the "Render on Save" option, saving the file (using cmd + S), makes the cursor leave the typing area and the focus jumps on the viewer window. To continue typing the document, you need to click or cmd + & to regain focus on the editor area breaking typing flow.
Steps to reproduce the issue:
- Type Quarto document in source mode, activating the "Render on Save" option and click the "Preview" button
- Use cmd + S shortcut to save the document
- Notice that the typing cursor is not visible anymore as the focus has moved to the preview window
Expected or desired behavior:
I expect the cursor to stay in the editor window so I can continue typing the document.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Quarto source-mode workflow with Render on Save enabled: open Preview, edit the document, and save with Cmd+S. Trace the render-on-save and preview focus handling; done means saving renders the document without moving focus away from the editor, so typing can continue immediately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100