diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-09-13 21:37:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-13 21:37:56 +0100 |
| commit | a92ada7727b2596414aafe204e5001eb066569cb (patch) | |
| tree | 73e289791f83135dfa2f5cecc6fa1c4019679238 /apps | |
| parent | 3bae3aad9a62dbf2cc9a0038c90ea992166cc336 (diff) | |
| download | karakeep-a92ada7727b2596414aafe204e5001eb066569cb.tar.zst | |
feat(search): add title search qualifier (#1940)
* fix(search): include link titles in title matcher
* docs(search): add title qualifier
* docs: remove title qualifier from v0.27 guide
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/components/dashboard/search/QueryExplainerTooltip.tsx | 11 | ||||
| -rw-r--r-- | apps/web/lib/i18n/locales/en/translation.json | 2 | ||||
| -rw-r--r-- | apps/web/lib/i18n/locales/en_US/translation.json | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx b/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx index e6abb9c9..529b7dd9 100644 --- a/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx +++ b/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx @@ -161,6 +161,17 @@ export default function QueryExplainerTooltip({ <TableCell>{matcher.url}</TableCell> </TableRow> ); + case "title": + return ( + <TableRow> + <TableCell> + {matcher.inverse + ? t("search.title_does_not_contain") + : t("search.title_contains")} + </TableCell> + <TableCell>{matcher.title}</TableCell> + </TableRow> + ); case "rssFeedName": return ( <TableRow> diff --git a/apps/web/lib/i18n/locales/en/translation.json b/apps/web/lib/i18n/locales/en/translation.json index 2d7fa1c0..a5dddd56 100644 --- a/apps/web/lib/i18n/locales/en/translation.json +++ b/apps/web/lib/i18n/locales/en/translation.json @@ -470,6 +470,8 @@ "year_s_ago": " Year(s) Ago", "url_contains": "URL Contains", "url_does_not_contain": "URL Does Not Contain", + "title_contains": "Title Contains", + "title_does_not_contain": "Title Does Not Contain", "is_in_list": "Is In List", "is_not_in_list": "Is not In List", "has_tag": "Has Tag", diff --git a/apps/web/lib/i18n/locales/en_US/translation.json b/apps/web/lib/i18n/locales/en_US/translation.json index 4e066f94..bec0705e 100644 --- a/apps/web/lib/i18n/locales/en_US/translation.json +++ b/apps/web/lib/i18n/locales/en_US/translation.json @@ -571,6 +571,8 @@ "type_is": "Type is", "type_is_not": "Type is not", "url_does_not_contain": "URL does not contain", + "title_contains": "Title contains", + "title_does_not_contain": "Title does not contain", "is_from_feed": "Is from RSS feed", "is_not_from_feed": "Is not from RSS feed", "and": "And", |
