You can search for code on git.sr.ht within your repositories by using the search bar found on the upper left corner of the page.
Search terms can be modified as follows:
-term: negation; don't include matching results(terms...): group terms, for use with other modifierskey:value: filter by "key" using "value". See Filters below.term OR term: logical OR. Logical AND is implicit.You can use the following search filters:
| Field | Aliases | Values | Description | Examples |
|---|---|---|---|---|
case: |
c: |
yes, no, or auto |
Matches case-sensitive or insensitive text. | case:yes content:"Foo" |
content: |
c: |
Text (string or regex) | Searches content of files. | content:"search term" |
file: |
f: |
Text (string or regex) | Searches file names. | file:"main.go" |
lang: |
l: |
Text | Filters by programming language. | lang:python |
regex: |
Regex pattern | Matches content using a regular expression. | regex:/foo.*bar/ |
commit 5b5b08b3b287db6b0180d0092943d1afb04b8852 Author: Drew DeVault <drew@ddevault.org> Date: 2026-08-27T10:32:53+02:00 terms.md: limit LLM use