# Add named bookmark support \(\#57491\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f6bfa0915fe22bca6ab725013dca01aced30a3b1

Requested commit: f6bfa0915fe22bca6ab725013dca01aced30a3b1

Commit: f6bfa0915fe22bca6ab725013dca01aced30a3b1

Tree: 20e2988cc41fc84c821a8f5430389e5e5c447549

Author: guopenghui

Committer: GitHub

## Message

```
Add named bookmark support (#57491)

Adds support for named bookmarks while preserving the existing unnamed
bookmark workflow.

Main changes:
- Keeps `ToggleBookmark` as the quick unnamed bookmark action.
- Adds `ToggleNamedBookmark`, which prompts for a bookmark name when
adding a new bookmark and removes an existing bookmark on the same line,
including unnamed ones.
- Adds `EditBookmark` support for renaming existing bookmarks.
- Persists bookmark names in workspace storage.
- Adds a project bookmarks picker that supports filtering by bookmark
name and relative path, with highlighted matches.
- Updates bookmark storage and tests to carry bookmark names through
serialization, restoration, navigation, and project-level listing.

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 #ISSUE

Video
toggle:


https://github.com/user-attachments/assets/a725b9cf-ac37-4ebc-85cc-ee820452c043

rename:


https://github.com/user-attachments/assets/a6d0d0c1-511b-4fb7-ae5d-22c55d1a075f


Release Notes:

- Add named bookmark support

---------

Co-authored-by: Yara 🏳️‍⚧️ <git@yara.blue>
```

## Parents

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

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