Merge pull request #767 from WorldCodeCentral/master

Add condition for the -b open in background argument for completions
This commit is contained in:
Oliver Blanthorn 2018-07-14 21:15:59 +01:00 committed by GitHub
commit 7e8c159a97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,11 @@ export class HistoryCompletionSource extends Completions.CompletionSourceFuse {
options = args.slice(0, 2).join(" ")
query = args.slice(2).join(" ")
}
if (query.startsWith("-b")) {
let args = query.split(" ")
options = args.slice(0, 1).join(" ")
query = args.slice(1).join(" ")
}
} else if (prefix == "winopen ") {
if (query.startsWith("-private")) {
options = "-private"