posit-dev / positron

Positron, a next-generation data science IDE
Other
2.57k stars 79 forks source link

New window shortcut (Shift + Cmd + N) rather opens new text file #4862

Closed matthewgson closed 2 weeks ago

matthewgson commented 2 weeks ago

It might be macOS only but I found the shortcut to open a new window (Shift + Cmd + N) doesn't work, but opens new text file.

petetronic commented 2 weeks ago

Is it possible that you have the RStudio Keymap Extension enabled? It registers the following shortcut: https://github.com/posit-dev/positron/blob/4351851a817dabac0b7859172bb07d261af8b69d/extensions/positron-rstudio-keymap/package.json#L52-L59

If you've found that the wrong shortcut is mentioned in menus, even with that extension disabled, it may also be issue #3993.

matthewgson commented 2 weeks ago

RStudio keybinding was enabled and it works, thank you. It's a bit unexpected though.

timtmok commented 2 weeks ago

Glad that you found the cause! This is expected since the RStudio keybindings were enabled to accommodate those that want to use more familiar keybindings.

matthewgson commented 2 weeks ago

@timtmok Oh I meant by this picture. It shows the default positron's shortcut even though RStudio keybinding is enabled. Image

jennybc commented 2 weeks ago

I think we are tracking this in #2150.

See https://github.com/posit-dev/positron/issues/2150#issuecomment-2313382741 specifically:

We have collected a number of issues that are related to this problem where the UI always shows a built-in keybinding, even when that keybinding does not apply to that action. The user might end up looking at the UI and trying that keybinding, but it does something completely different. So far this has come up in situations like "when": "isRPackage" or when the RStudio Keymap is enabled. Let's use this issue to track this problem and close the others.