Honor cli_default_open_behavior for File menu ‘Open Folder’ / ‘Open Remote’ actions #57235
EgorKulikov
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
"File → Open Folder…" and "File → Open Remote…" (and the recent-projects picker) always replace the current workspace. There is a settings key
cli_default_open_behavior: "new_window"that solves this for the CLI (zed <path>), but the menu actions don't honor it — they dispatch their actions withcreate_new_window: falsehard-coded.Reference:
crates/zed/src/zed/app_menus.rsconstructs e.g.zed_actions::OpenRecent { create_new_window: false }and the "Open Folder" menu dispatchesworkspace::Openwith the default value (alsofalse).The only user-side workaround is rebinding the keyboard shortcuts in
keymap.jsonto pass{ "create_new_window": true }— but the menu click itself remains untouchable from user config.Proposal
Make the existing
cli_default_open_behaviorsetting (or a parallelmenu_default_open_behavior) apply to:So a user who has already opted into "open in new window" via settings gets consistent behavior whether they invoke the action via menu, CLI, or keyboard shortcut.
Related
Beta Was this translation helpful? Give feedback.
All reactions