zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.52k stars 2.9k forks source link

Open Recent Projects from top-right menu and from `projects::openRecent` do not have the same confirm key bindings #17765

Open Ptitet opened 1 month ago

Ptitet commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When you go to the top-right burger menu and click on Project > Open Recent Projects, it says enter reuses this window, ^enter opens a new one. When the open the same floating-menu with the action projects::openRecent via key bindings, it says the opposite : ^enter reuses this window, enter opens a new one. Also, actually using ^enter does not work, it just "deletes" the text enter reuses....

I cannot provide screenshots as the floating-menu disappear when I trigger the screenshot

Environment

Zed: v0.152.3 (Zed) OS: Linux X11 linuxmint 21.3 Memory: 7.7 GiB Architecture: x86_64 GPU: Intel(R) HD Graphics 5500 (BDW GT2) || Intel open-source Mesa driver || Mesa 23.2.1-1ubuntu3.1~22.04.2

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

No response

kuku929 commented 1 month ago

hello, adding this to keymap.json fixes it. This should be the default setting, can I work on submitting a PR for this? { "context": "Workspace", "bindings": { "alt-ctrl-o": [ "projects::OpenRecent", { "create_new_window": false } ] } }

Ptitet commented 1 month ago

Thanks for the workaround ! Where are these kind of options ({ "create_new_window": false }) documented ?

kuku929 commented 1 month ago

I am new here myself, but I found it in the default keymap. I am also curious about the documentation regarding this.