From 5c807b0ca271471a3d88b8eb91d025332f604852 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Tue, 6 Jun 2023 18:05:35 +0200 Subject: [PATCH] Clarify that jsurls can be async --- src/lib/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/config.ts b/src/lib/config.ts index f0aa7f96..378212b6 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -764,7 +764,7 @@ export class default_config { } /** - * Like [[searchurls]] but must be a Javascript function that takes one argument (a single string with the remainder of the command line including spaces) and maps it to a valid href that will be followed, e.g. `set jsurls.googleloud query => "https://google.com/search?q=" + query.toUpperCase()` + * Like [[searchurls]] but must be a Javascript function that takes one argument (a single string with the remainder of the command line including spaces) and maps it to a valid href (or a promise that resolves to a valid href) that will be followed, e.g. `set jsurls.googleloud query => "https://google.com/search?q=" + query.toUpperCase()` * * NB: the href must be valid, i.e. it must include the protocol (e.g. "http://") and not just be e.g. "www.". */