feat(ui): mention quote searching and search docs in search syntax popup (#12966)

Fixes [#12505](https://codeberg.org/forgejo/forgejo/issues/12505).
Also see [this comment](https://codeberg.org/forgejo/forgejo/issues/12505#issuecomment-15410954) on the issue as well.

## Preview

![](https://codeberg.org/attachments/4e1a85e8-755d-4137-85a3-60ab193bc919)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12966
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
Leni Kadali 2026-06-11 06:59:40 +02:00 committed by 0ko
commit 6def475fc4
2 changed files with 5 additions and 1 deletions

View file

@ -134,6 +134,8 @@
"search.syntax": "Search syntax",
"search.fuzzy": "Fuzzy",
"search.fuzzy_tooltip": "Include results is an approximate match to the search term",
"search.match_inside_quotes": "Include only results that match the term in quotes",
"search.docs": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"%[1]s\">See the documentation</a> for further details on search, operators, and filters.",
"repo.settings.push_mirror.branch_filter.label": "Branch filter (optional)",
"repo.settings.push_mirror.branch_filter.description": "Branches to be mirrored. Leave blank to mirror all branches. See <a href=\"%[1]s\">%[2]s documentation</a> for syntax. Examples: <code>main, release/*</code>",
"repo.settings.units.more_units_disable_hint": "The \"Enable more\" hint can be disabled in <a href=\"%s\">User settings > Appearance</a>.",

View file

@ -15,13 +15,15 @@
"review:<username>" (ctx.Locale.TrString "repo.issues.filter_reviewers.hint")
"mentions:<username>" (ctx.Locale.TrString "repo.issues.filter_mention.hint")
"sort:<by>:[asc|desc]" (ctx.Locale.Tr "repo.issues.filter_sort.hint_with_placeholder" (HTMLFormat "<code>created|comments|updated|deadline</code>"))
"modified:[>|<]<date>" (ctx.Locale.TrString "repo.issues.filter_modified.hint")}}
"modified:[>|<]<date>" (ctx.Locale.TrString "repo.issues.filter_modified.hint")
"\"forgejo\"" (ctx.Locale.TrString "search.match_inside_quotes")}}
<tr>
<th class="tw-p-2"><code>{{$filter}}</code></th>
<td class="tw-p-2">{{$tr}}</td>
</tr>
{{end}}
</tbody>
{{ctx.Locale.Tr "search.docs" "https://forgejo.org/docs/latest/user/issue-search/"}}
</table>
</div>
<footer class="actions">