From 4a18e6c377eea4e3129438ec0b1be03108849bab Mon Sep 17 00:00:00 2001 From: satyamk Date: Wed, 14 Jun 2023 03:33:53 +0530 Subject: [PATCH] improved documentation of text2qr command --- src/excmds.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/excmds.ts b/src/excmds.ts index 34508534..26bb9d8e 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -5900,7 +5900,19 @@ export async function issue() { } /** - * generates qr code for the given text + * Generates qr code for the given text. By default opens in new tab. + * If no text is passed as argument then it checks if any selection is present and creates qr code for that. + * If not selection is found then it creates qr code for the current tab's URL + * + * `text2qr --popup [...]` will open the qr code in a new popup window + * + * `text2qr --window [...]` will open the qr code in a new window + * + * `text2qr --current [...]` will open in current tabopen + * + * `text2qr --timeout [...]` closes the tab/window/popup after specified number of seconds + * + * Example: text2qr --timeout 5 --popup hello world */ //#content export async function text2qr(...args: string[]) {