This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[flake8] | |
max-line-length = 80 | |
select = | |
E # pep8 errors | |
F # pyflakes errors | |
W # pep8 warnings | |
B # flake8-bugbear warnings | |
ignore = | |
E201 # whitespace after '[' | |
E202 # whitespace before ']' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function quickPickTag( | |
tags: string[], | |
canSelectMany: boolean = false, | |
acceptInput: boolean = true): Promise<string[]> { | |
let options = tags.map(tag => ({ label: tag })); | |
return new Promise((resolve, _) => { | |
let quickPick = vscode.window.createQuickPick(); | |
let placeholder = "Select a tag."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as vscode from 'vscode'; | |
export async function quickPickItem(items: string[]): Promise<string[]> { | |
const options = items.map(item => ({ label: item })); | |
return new Promise((resolve, _) => { | |
const quickPick = vscode.window.createQuickPick(); | |
const placeholder = "Select a item."; | |
quickPick.placeholder = placeholder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function showMultiSelectInputBox(): Promise<string[]> { | |
const items = ["testing", "boop", "77708"]; | |
const mappedItems = items.map((item) => ({ label: item })); | |
return new Promise((resolve, _) => { | |
const quickPick = window.createQuickPick(); | |
quickPick.placeholder = "Select/Insert a selection."; | |
quickPick.items = mappedItems; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Encrypted password in sec.conf | |
/secure passphrase <pass> | |
/secure set zncpass <pass> | |
# Default setting for all network | |