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

ctrl+shift+c opens terminal in ubuntu #3847

Closed
oranwutang opened this issue Jul 3, 2024 · 7 comments
Closed

ctrl+shift+c opens terminal in ubuntu #3847

oranwutang opened this issue Jul 3, 2024 · 7 comments
Labels
area: ui Issues related to UI category. bug Something isn't working support

Comments

@oranwutang
Copy link

Positron Version:

Positron Version: 2024.06.1 build 54
Code - OSS Version: 1.90.0
Commit: 5115c73
Date: 2024-07-03T03:04:49.029Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.5.0-41-generic

Hi!

I'm using positron on Ubuntu 22.04.4 LTS x86_64 and while trying to comment a line in code editor using the shortcut (ctrl+shift+c), what I get is a terminal window opened and the line is not commented.

FWIW, pressing ctrl+shift+c in VSCode has the same behaviour, in VSCode the shortcut for commenting is ctrl+shift+7, it also works on Positron

For obvious reason I think this is a very critical issue!

Thanks in advance for your work with Positron, I've just installed it and I'm enjoying a lot trying all the new features!

Steps to reproduce the issue:

  1. Try to use the shortut to comment a line (ctrl+sfiht+c)

What did you expect to happen?

Get the line commented

Were there any error messages in the output or Developer Tools console?

No

@oranwutang oranwutang added the bug Something isn't working label Jul 3, 2024
@oranwutang
Copy link
Author

Additional info: pressing ctrl+shift+A won't do anything!

@juliasilge
Copy link
Contributor

Related to #3830

Do you have the RStudio Keymap enabled? You can do that in settings:

image

Without the RStudio Keymap enabled, you'll get the default VS Code behavior for this key combo, which is indeed to open a terminal.

@juliasilge juliasilge removed the bug Something isn't working label Jul 3, 2024
@oranwutang
Copy link
Author

Oh, I'm sorry, effectively it works.

Anyways, I think that a program should do what it says it does, specially after a "standard" installation.

Let's say that a completely newbie (who doesn't know a thing about RStudio or VSCode) installs Positron, he goes to the menu edit and see this:

image

But the shortcuts stated on the menu doesn't work, unless he does some kind of trick...

I think that if the standard installation doesn't offer the RStudio keymap by default, then it should have consistency between the shortcuts mentioned in the menus and the correct corresponding keymap.

It's just my very humble opinion :)

Thanks for your prompt and kind answer, Julia!

Best regards

@juliasilge
Copy link
Contributor

Oh wow, I had not noticed this before. Thanks for the report! 🙌

I think by providing a keybinding here:

"command": "editor.action.commentLine"

we are overriding what shows up in the native "Edit" menu, even when the RStudio Keymap is not enabled. I just tried out a dev build and if I remove this keybinding, the native "Edit" menu goes back to the VS Code default.

This is sort of related to #2423 where we have a keyboard shortcut shown in the UI which does not actually work in some situations.

@juliasilge juliasilge added area: ui Issues related to UI category. bug Something isn't working support labels Jul 3, 2024
@oranwutang
Copy link
Author

Do you have a way to make RStudio keymap activated by default after a vanilla installation of Positron?
Maybe that's a solution, but I don't know if it is feasible or desirable.

@petetronic
Copy link
Collaborator

We won't make that keymap the default, but we should make sure a disabled RStudio Keymap mode does not show incorrect key bindings in menus.

@juliasilge
Copy link
Contributor

Let's track this and related problems in #3993. Thanks! 🙌

@juliasilge juliasilge closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: ui Issues related to UI category. bug Something isn't working support
Projects
None yet
Development

No branches or pull requests

3 participants