# Use outline queries to chunk files syntactically \(\#11283\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 43ad470e587c1c4c3b373200b2fa07e0d3080ee5

Requested commit: 43ad470e587c1c4c3b373200b2fa07e0d3080ee5

Commit: 43ad470e587c1c4c3b373200b2fa07e0d3080ee5

Tree: dbb4df589e07411308dd1114888ad6303362175b

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Use outline queries to chunk files syntactically (#11283)

This chunking strategy uses the existing `outline` query to chunk files.
We try to find chunk boundaries that are:

* at starts or ends of lines
* nested within as few outline items as possible

Release Notes:

- N/A
```

## Parents

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

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