Repository navigation
Conversation
Expose CopyWorkingDirectory in the editable keymap with Ctrl+Shift+L (Shift+Cmd+L on macOS), matching the tab menu and command palette action.
Remove one trailing blank line so check_architecture stays at the 2575-line cap after adding CopyWorkingDirectory. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
I'll fix it later when I have some free time. |
Updating the keymap filter expectations after adding the copy-cwd action. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Please check this over. |
Kuddev
left a comment
There was a problem hiding this comment.
The terminal shortcut itself works, but the current binding can also replace the clipboard while a Settings text field has focus. The root handler still sees the active terminal behind Settings and copies its directory. It then calls focus_active, which moves focus from the text field back to the Settings surface. The focus change also happens when the terminal has no known directory.
I ran the submitted registration and handler at 24e8e4b6 with its pinned GPUI key matching code and isolated window and clipboard fixtures. The terminal case passed. The Settings input case copied the hidden terminal's directory and moved focus with the default chord, the Command alias, and a user binding. A terminal-scoped binding preserved the Settings input and clipboard and still copied the directory in the terminal. The existing CI test covers the terminal match only.
Please scope this action to terminal focus for defaults, the macOS alias, and user overrides, and avoid refocusing the workspace after copying. Add a regression with an active terminal behind a focused Settings field, then update against current main for the native checks.
Terminal-only binding and no focus_active after copy; regression test for settings search with a terminal behind.
Expose CopyWorkingDirectory in the editable keymap with Ctrl+Shift+L (Shift+Cmd+L on macOS), matching the tab menu and command palette action.
Advertising, commercial promotion, and traffic solicitation are prohibited in PRs
and Issues. Business requests must go through the email in the
contribution policy.
PRs or Issues containing unauthorized promotion will be closed directly.
严禁利用 PR 或 Issue 推广、引流,未经授权的推广将直接关闭;商业需求请通过贡献指南中的邮箱沟通,已获批准的赞助按批准范围处理。
Result / 用户结果
Design / 设计边界
config::Action::CopyWorkingDirectory; GPUICopyWorkingDirectoryworkspace action delegates to existingTerminalView::copy_working_directory; legacy input path usesfocused_cwd_string()+ clipboard (same as paletteCopyCwd).CommonCopyWorkingDirectory/CommonCwdCopied); SSH tab naming and cwd reporting rules unchanged.keybind=lines unaffected unless they override the same combo.Evidence / 验证依据
cargo check -p nebula --bin pebrel --features gpui-test-support— passes locally.copy_working_directory_default_binds_gpui_actionand extended default-combo coverage forctrl+shift+l;hardcoded_migrationlist updated. Fullcargo testforpebrelnot run locally (missinglibxkbcommon-x11on this machine); CI expected to run project checks.Required Review / 必须确认
CONTRIBUTING.md,docs/architecture.md, anddocs/project-constraints.md.python3 scripts/check_architecture.py --base <PR-base-commit>passes; budgets were not inflated to fit the change.Message::CommonCopyWorkingDirectory; no new catalog IDs.)Checkboxes explain the review; they do not replace CI or maintainer approval.