# editor: Add toggle breadcrumb action \(\#57970\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0bd41d67b94bcf93da89cf79fb7f32b7d064d0b7)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0bd41d67b94bcf93da89cf79fb7f32b7d064d0b7

Requested commit: 0bd41d67b94bcf93da89cf79fb7f32b7d064d0b7

Commit: 0bd41d67b94bcf93da89cf79fb7f32b7d064d0b7

Tree: a4ccb22071267de5587532a24a80748ab1ea0025

Author: Alvaro Parker

Committer: GitHub

## Message

```
editor: Add toggle breadcrumb action (#57970)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #55576

This PR adds a new `editor: toggle breadcrumb` actions that toggles the
breadcrumbs for the active item without persisting on `settings.json`.
Similar to what `editor: toggle minimap` does.


https://github.com/user-attachments/assets/7179a0c8-6a5e-4716-86b8-abde8aa61f68

A simple test was added to check that using this action doesn't change
the settings, and that changing an unrelated setting keeps the toggled
action as the source of truth for the breadcrumb visibility.

Release Notes:

- Added `editor: toggle breadcrumb` action to toggle breadcrumb of
active item without persisting on `settings.json`
```

## Parents

- [735980b158e447add9a87641828707fb15837c31](https://git.cafe/gitcafe/zed/commit/735980b158e447add9a87641828707fb15837c31?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0bd41d67b94bcf93da89cf79fb7f32b7d064d0b7?format=markdown)
