# workspace: Deduplicate navigation history entries \(\#44504\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 95852d4c716348e0621b6d074d0a6694391cbb77

Requested commit: 95852d4c716348e0621b6d074d0a6694391cbb77

Commit: 95852d4c716348e0621b6d074d0a6694391cbb77

Tree: a7882aab0def9cfb8b0bcb83773afc3f6a99ddb6

Author: Ignacio

Committer: GitHub

## Message

```
workspace: Deduplicate navigation history entries (#44504)

Closes #43545

Remove existing entries for an item before adding new ones to the
navigation history. This prevents Go Back (Ctrl-O) from bouncing between
the same items repeatedly.

Navigation pattern A->B->A->B->C now creates history [A,B,C] instead of
[A,B,A,B,C], making backward navigation more efficient.

Release Notes:

- N/A
```

## Parents

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

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