Skip to content

Fix Collapse All Files button being limited to the current buffer#50076

Merged
JosephTLyons merged 2 commits intozed-industries:mainfrom
0x2CA:fix_collapse_all_files_only_click_buffer
Feb 26, 2026
Merged

Fix Collapse All Files button being limited to the current buffer#50076
JosephTLyons merged 2 commits intozed-industries:mainfrom
0x2CA:fix_collapse_all_files_only_click_buffer

Conversation

@0x2CA
Copy link
Copy Markdown
Contributor

@0x2CA 0x2CA commented Feb 25, 2026

Refactor buffer search bar click handler to use listener pattern

The click handler for the buffer search bar now uses the cx.listener pattern instead of directly dispatching the action. This approach properly binds the action handler to the component's context and ensures consistent behavior with other event handlers in the codebase.

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

before:

2026-02-25.19.10.49.mov

after:

2026-02-25.19.12.03.mov

Release Notes:

  • Fixed the "Collapse All Files" button to work globally, now it's limited to the current buffer

The click handler for the buffer search bar now uses the `cx.listener` pattern instead of directly dispatching the
action. This approach properly binds the action handler to the component's context and ensures consistent behavior with
other event handlers in the codebase.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 25, 2026
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Feb 25, 2026
@maxdeviant maxdeviant changed the title fix:Collapse All Files button limited to the current buffer Fix Collapse All Files button being limited to the current buffer Feb 25, 2026
@JosephTLyons JosephTLyons self-requested a review February 26, 2026 14:24
@JosephTLyons JosephTLyons self-assigned this Feb 26, 2026
@JosephTLyons JosephTLyons enabled auto-merge (squash) February 26, 2026 15:07
@JosephTLyons JosephTLyons merged commit fc2d805 into zed-industries:main Feb 26, 2026
27 checks passed
rtfeldman pushed a commit that referenced this pull request Feb 27, 2026
…50076)

Refactor buffer search bar click handler to use listener pattern

The click handler for the buffer search bar now uses the `cx.listener`
pattern instead of directly dispatching the action. This approach
properly binds the action handler to the component's context and ensures
consistent behavior with other event handlers in the codebase.

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)


before:


https://github.com/user-attachments/assets/4fe5eaa4-be5c-4fe5-92d6-60a4f2059f7a

after:


https://github.com/user-attachments/assets/31238988-b664-4c4b-b143-e4d09c5f0a62



Release Notes:

- Fixed the "Collapse All Files" button to work globally, now it's
limited to the current buffer

---------

Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com>
@0x2CA 0x2CA deleted the fix_collapse_all_files_only_click_buffer branch February 28, 2026 06:29
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
…ed-industries#50076)

Refactor buffer search bar click handler to use listener pattern

The click handler for the buffer search bar now uses the `cx.listener`
pattern instead of directly dispatching the action. This approach
properly binds the action handler to the component's context and ensures
consistent behavior with other event handlers in the codebase.

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)


before:


https://github.com/user-attachments/assets/4fe5eaa4-be5c-4fe5-92d6-60a4f2059f7a

after:


https://github.com/user-attachments/assets/31238988-b664-4c4b-b143-e4d09c5f0a62



Release Notes:

- Fixed the "Collapse All Files" button to work globally, now it's
limited to the current buffer

---------

Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com>
naaiyy pushed a commit to Glass-HQ/Glass that referenced this pull request Mar 6, 2026
…ed-industries#50076)

Refactor buffer search bar click handler to use listener pattern

The click handler for the buffer search bar now uses the `cx.listener`
pattern instead of directly dispatching the action. This approach
properly binds the action handler to the component's context and ensures
consistent behavior with other event handlers in the codebase.

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)


before:


https://github.com/user-attachments/assets/4fe5eaa4-be5c-4fe5-92d6-60a4f2059f7a

after:


https://github.com/user-attachments/assets/31238988-b664-4c4b-b143-e4d09c5f0a62



Release Notes:

- Fixed the "Collapse All Files" button to work globally, now it's
limited to the current buffer

---------

Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com>
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 community champion Issues filed by our amazing community champions! 🫶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants