Skip to content

sidebar: Rename next/prev actions and small fix#53333

Open
cameron1024 wants to merge 5 commits intomainfrom
tab-switcher-2
Open

sidebar: Rename next/prev actions and small fix#53333
cameron1024 wants to merge 5 commits intomainfrom
tab-switcher-2

Conversation

@cameron1024
Copy link
Copy Markdown
Contributor

Correctness fix + renaming the actions
Release Notes:

  • N/A or Added/Fixed/Improved ...

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Apr 7, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Apr 7, 2026
if let Some(sidebar) = &self.sidebar {
let focus_handle = sidebar.focus_handle(cx);
window.defer(cx, move |window, cx| {
focus_handle.dispatch_action(&*action, window, cx);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than dispatching to the sidebar, we should do this more like the tab switcher. That way, we keep sidebar related logic in the sidebar, but still can have global actions:

https://github.com/zed-industries/zed/blob/main/crates/tab_switcher/src/tab_switcher.rs#L66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants