Make bmarks ignore -b

This commit is contained in:
Oliver Blanthorn 2022-04-04 20:40:40 +02:00
parent a0bdc2debc
commit c7685fd3ae
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -70,6 +70,11 @@ export class BmarkCompletionSource extends Completions.CompletionSourceFuse {
option += " "
query = args.slice(2).join(" ")
}
if (query.startsWith("-b")) {
const args = query.split(" ")
option += args.slice(0, 1).join(" ") + " "
query = args.slice(1).join(" ")
}
this.completion = undefined
this.options = (await providers.getBookmarks(query))