# std docs: enhance search browser history UX · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c9ffb6f734567ecb2a368d0d8786e9d1365f42b8)

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

Visibility: public

Requested revision: c9ffb6f734567ecb2a368d0d8786e9d1365f42b8

Requested commit: c9ffb6f734567ecb2a368d0d8786e9d1365f42b8

Commit: c9ffb6f734567ecb2a368d0d8786e9d1365f42b8

Tree: 8aebe9ad34e1d911a021984cafe71309b375a97b

Author: Hannu Hartikainen

Committer: Andrew Kelley

## Message

```
std docs: enhance search browser history UX

Before this change every keypress in the search field causes a browser
history entry, which makes navigating back annoying.

On first keypress in the search field, a new history entry is created.
On subsequent keypresses, the most recent history entry is replaced.
Therefore a typical history after searching and navigating to an entry
might look like

1. documentation root
2. search page "print"
3. docs for `std.debug.print`


Co-authored-by: Žiga Željko <ziga.zeljko@gmail.com>

```

## Parents

- [545830c0fff449f219557b45911195b4a4026692](https://git.cafe/gitcafe/zig/commit/545830c0fff449f219557b45911195b4a4026692?format=markdown)

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