Skip to content

Commit

Permalink
Make the command separator customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolalamacchia committed Feb 14, 2020
1 parent bad947d commit 191ac13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import './style.css'
alwaysNewTab: false,
gistID: '',
links: [],
separator: ';',
}
const DEFAULT_CONFIG = Object.assign({}, CONFIG)
let aliases = {
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -672,7 +673,7 @@ import './style.css'
switch (args.length) {
case 0:
displayErrorMessage(
`link is a builtin command<br>To search for "link" try g;link<br>`,
`link is a builtin command<br>To search for "link" try g${CONFIG.separator}link<br>`,
8000
)
break
Expand Down

0 comments on commit 191ac13

Please sign in to comment.