From 191ac136a3600561c83466d08c26913cad83fce1 Mon Sep 17 00:00:00 2001 From: Nicola Lamacchia Date: Fri, 14 Feb 2020 19:01:45 +0100 Subject: [PATCH] Make the command separator customizable --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 2e6f443..b5e599c 100644 --- a/src/index.js +++ b/src/index.js @@ -14,6 +14,7 @@ import './style.css' alwaysNewTab: false, gistID: '', links: [], + separator: ';', } const DEFAULT_CONFIG = Object.assign({}, CONFIG) let aliases = { @@ -263,7 +264,7 @@ import './style.css' lastEnteredCommand = input // Format input - let args = input.split(';') + let args = input.split(CONFIG.separator) let command = args[0].toLowerCase() for (let i = 0; i < args.length; i++) { args[i] = args[i].trim() @@ -672,7 +673,7 @@ import './style.css' switch (args.length) { case 0: displayErrorMessage( - `link is a builtin command
To search for "link" try g;link
`, + `link is a builtin command
To search for "link" try g${CONFIG.separator}link
`, 8000 ) break