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

Keyboard shortcut weirdness with shortcut for R: Insert new section #4766

Open
rkrug opened this issue Sep 20, 2024 · 1 comment
Open

Keyboard shortcut weirdness with shortcut for R: Insert new section #4766

rkrug opened this issue Sep 20, 2024 · 1 comment

Comments

@rkrug
Copy link

rkrug commented Sep 20, 2024

System details:

M1 Macbook Pro

Positron and OS details:

Positron Version: 2024.09.0 (Universal) build 45
Code - OSS Version: 1.92.0
Commit: b0ec249
Date: 2024-09-16T02:45:13.900Z
Electron: 30.1.2
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

Interpreter details:

R 4.4.1 or Python

Describe the issue:

Keyboard shortcuts for shown after SHIFT-CMD-P are different to the ones defined int the json and noe of them work in an R file

Steps to reproduce the issue:

SHIFT-CMD-P - look at R: Insert a new section, and press the gear icon and compare

Screenshot 2024-09-20 at 11 10 59
Screenshot 2024-09-20 at 11 11 17

Expected or desired behavior:

Were there any error messages in the UI, Output panel, or Developer Tools console?

No.

@rkrug rkrug changed the title Keyboard shortcut weirdness Keyboard shortcut weirdness with shortcut for R: Insert new section Sep 20, 2024
@petetronic
Copy link
Collaborator

Hi @rkrug, thanks for raising this. I believe this is a bug with the RStudio Keymap Extension, which is showing shortcuts in menus even if it is not enabled. See #3993

If you look at registered Keyboard Shortcuts (press Cmd+K then S) for this command, you'll see two entries for this command:

  • R: Insert a new section = Cmd+K H (when: editorLangId == 'r')
  • R: Insert a new section = Shift+Cmd+R (when: config.rstudio.keymap.enable && ... && editorLangId == 'r')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants