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 3a1362cf2e30b0c40030707834b81065280c84ba Author: Conrad Hoffmann <ch@bitfehler.net> Date: 2026-06-02T14:43:17+02:00 builds.sr.ht/manifest: submitter: clarify defaults