# rules_library: Fix hover selecting active rule \(\#53264\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ec832cade62a0248ac7cee6b9d45367ea9ab9f7a

Requested commit: ec832cade62a0248ac7cee6b9d45367ea9ab9f7a

Commit: ec832cade62a0248ac7cee6b9d45367ea9ab9f7a

Tree: 8776c11fac7ec3e1f0b68f4dcbdb11e317d31682

Author: Danilo Leal

Committer: GitHub

## Message

```
rules_library: Fix hover selecting active rule (#53264)

Closes https://github.com/zed-industries/zed/issues/53159

Recently, we changed the behavior of pickers so that hovering matches
would also select them. This makes sense for most pickers that are used
as "regular" pickers, but we have some in Zed that are not. A great
example of one is the rules library, which sort of became way less
usable with this behavior. So, this PR introduces a simple bool trait
method to the picker so that we can turn this behavior off whenever
necessary. The rules library kicks off as the only instance of it being
turned off.

Release Notes:

- Fix navigation within the rules library making it so hovering the
sidebar doesn't activate the visible rule.
```

## Parents

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

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