From 8d08bf3ee4429ff2fab2b2936a100d4c00a5f63f Mon Sep 17 00:00:00 2001 From: PrivateGER Date: Thu, 25 May 2023 23:25:52 +0200 Subject: [PATCH] Add search operators to frontend --- packages/client/src/scripts/search.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/client/src/scripts/search.ts b/packages/client/src/scripts/search.ts index 36646d24f3..54b300e1d9 100644 --- a/packages/client/src/scripts/search.ts +++ b/packages/client/src/scripts/search.ts @@ -5,6 +5,13 @@ import { mainRouter } from "@/router"; export async function search() { const { canceled, result: query } = await os.inputText({ title: i18n.ts.search, + placeholder: "Enter search terms...", + text: "Advanced search operators\n" + + "from:user => filter by user\n" + + "has:image/video/audio/text/file => filter by attachment types\n" + + "domain:domain.com => filter by domain\n" + + "before:Date => show posts made before Date\n" + + "after:Date => show posts made after Date" }); if (canceled || query == null || query === "") return;