Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Keyboard shortcut for "Toggle Line Comment" (Cmd+/) does not work inside code chunks in Visual Mode

オープン
#987 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
frontend

調査の方向性

No files or tests are named in the issue. Start by locating the Visual Mode keyboard-shortcut handling and how code chunks connect to the underlying editor, then reproduce the Cmd+/ and Ctrl+/ cases in a .qmd or .Rmd file. Done means the current line inside a code chunk is commented in Visual Mode on macOS and Windows, with regression coverage for the shortcut.

索引モデルが issue の本文から書いたものです。

説明

bug visual-editor
Bug description

In Positron, when working in Visual Mode within a .qmd or .Rmd file, the keyboard shortcut for toggling line comments (Cmd + / on macOS or Ctrl + / on Windows) does not work when the cursor is inside a code chunk (e.g., {python} or {r}).

However, it works perfectly fine when switching back to Source Mode.

In RStudio, the comment shortcut works seamlessly inside code chunks even in Visual Mode. As an RStudio user migrating to Positron, this feels like a slight regression in the user experience. It would be highly appreciated if the Visual Editor could pass the comment shortcut down to the underlying code cell.

Steps to reproduce
Open a .qmd or .Rmd document in Positron.
Switch to Visual Mode.
Insert or find a code chunk (e.g., {python}).
Place the cursor on a line of code inside the chunk.
Press Cmd + / (macOS) or Ctrl + / (Windows).
Expected behavior
The current line of code inside the chunk should be commented out (e.g., adding # at the beginning of the line), just like it does in RStudio's Visual Mode or Positron's Source Mode.

Actual behavior
Nothing happens. The shortcut seems to be intercepted or ignored by the Visual Editor.

Environment
OS: macOS (or Windows, please specify)
Positron Version: (You can find this in Positron menu -> About Positron)

Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment

No response

主要言語
TypeScript
スター
652
フォーク
64
平均マージ
8時間 45分
マージ済み PR(30日)
36

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto のほかの issue

quarto-dev/quarto の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。