# Omit gitignored files from context file picker \(\#23777\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2b160f4f3cc7c5f7806545acb68884e475ca10a0

Requested commit: 2b160f4f3cc7c5f7806545acb68884e475ca10a0

Commit: 2b160f4f3cc7c5f7806545acb68884e475ca10a0

Tree: b6288fe86b251cca5f4be543229d1dccb2e6e060

Author: João Marcos

Committer: GitHub

## Message

```
Omit gitignored files from context file picker (#23777)

In both `thread` and `prompt editor` the context file picker, gitignored
files are hidden (as expected) when searching files by path, but they
are still shown initially as you create the file picker.

Plus, selecting gitignored files in the `prompt editor` is bugged and
collapses everything.

This PR settles on not showing gitignored files to solve these
inconsistencies.

Release Notes:

- Fix gitignored files filter occasionally not working in context file
picker.
```

## Parents

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

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