quarto-dev / quarto-dev/quarto

Inconsistant Code Chunk Intsert Behavior in Quarto Source / Visual mode

Open
#665 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Bug description

https://github.com/user-attachments/assets/4b90e1cc-45a1-4b3c-a35c-2664d22cf4fe

In source mode in Quarto, it remembers the previous code chunk’s language.
However, in visual mode, it doesn’t remember the previous chunk’s language. I hope it behaves similarly to source mode.

Additionally, I couldn’t find the default Positron keymap for inserting a code chunk in visual mode (the default hotkey in source mode instead inserts an image). Instead, I use the RStudio keymap in visual mode, even though I don’t use the RStudio keymap in Positron. I hope this keybinding inconsistency is considered as well. :)

I initially posted this issue to Positron and it was rather suggested to be reported here:

https://github.com/posit-dev/positron/issues/6321#issue-2848688926

Steps to reproduce

See above screen recordings

Actual behavior

See above screen recordings

Expected behavior

In visual mode, it should remember previous language as in source mode. Also, it should have consistent hotkeys.

Your environment

Positron Version: 2025.02.0 (Universal) build 171
Code - OSS Version: 1.96.0
Commit: 55f73310e900d46f5f472b4b7e2baa552aa2f157
Date: 2025-02-10T16:03:19.797Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0

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 with the linked screen recordings and compare Quarto code-chunk insertion in source and visual modes, then inspect the Positron and RStudio keymap behavior described in the report. Done means visual mode remembers the previous chunk language and the insertion hotkeys are consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.