diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..80dc9a45 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +{ + "name": "Go Dev Container", + "image": "mcr.microsoft.com/devcontainers/go:1-1.24-bookworm", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {} + }, + "customizations": { + "vscode": { + "extensions": [ + "golang.go", + "ms-azuretools.vscode-docker", + "ms-azuretools.vscode-containers", + "ms-vscode-remote.remote-containers", + "DigitalBrainstem.javascript-ejs-support", + "mhutchie.git-graph", + "shadowdara.samfile", + "bradlc.vscode-tailwindcss", + "github.vscode-github-actions" + ] + } + }, + "forwardPorts": [ + 8080 + ], + "postCreateCommand": "go mod download" +} \ No newline at end of file diff --git a/.finder/shema/finder-template.v2.schema.json b/.finder/shema/finder-template.v2.schema.json index 17fe2357..5886297d 100644 --- a/.finder/shema/finder-template.v2.schema.json +++ b/.finder/shema/finder-template.v2.schema.json @@ -9,7 +9,11 @@ }, "name": { "type": "string", - "description": "Name of the folder or template." + "description": "Name pattern of the folder or template (exact name or glob)." + }, + "name_regex": { + "type": "string", + "description": "Optional regular expression matched against the folder name (Go RE2)." }, "folders": { "type": "array", @@ -41,6 +45,7 @@ "type": "object", "properties": { "name": { "type": "string" }, + "name_regex": { "type": "string" }, "existence": { "type": "string", "enum": ["required", "forbidden", "optional"], @@ -54,6 +59,7 @@ "properties": { "description": { "type": "string" }, "name": { "type": "string" }, + "name_regex": { "type": "string" }, "folders": { "type": "array", "items": { "$ref": "#/definitions/folder" } diff --git a/.finder/templates/folderimages.json5 b/.finder/templates/folderimages.json5 index c77ac157..8f2e6b36 100644 --- a/.finder/templates/folderimages.json5 +++ b/.finder/templates/folderimages.json5 @@ -3,9 +3,9 @@ "description": "search for folders with images", "files": [ { - "name": "(?:\\.(?:j(?:p(?:eg?|g)|if|fif?|xl)|png|gif|webp|a(?:vif|png)|svg|bmp|ico|tiff|hei[cf]))$" + "name_regex": "(?:\\.(?:j(?:p(?:eg?|g)|if|fif?|xl)|png|gif|webp|a(?:vif|png)|svg|bmp|ico|tiff|hei[cf]))$" } ], - "min_version": "0.3.17", + "min_version": "0.3.18", "mdnote_base64": "IyBUZW1wbGF0ZSB0byBzZWFyY2ggYWxsIGltYWdlIGZpbGVzCgojIyMgYmFja3VwIGZvciB0aGUgcmVnZXggY3JlYXRvcjoKCmBgYApleUoySWpveExDSmhJam9pTG1wd1oxeHVMbXB3WldkY2JpNXFjR1ZjYmk1cWFXWmNiaTVxWm1sbVhHNHVhbVpwWEc0dWNHNW5YRzR1WjJsbVhHNHVkMlZpY0Z4dUxtRjJhV1pjYmk1emRtZGNiaTVoY0c1blhHNHVZbTF3WEc0dWFXTnZYRzR1ZEdsbVpseHVMbXA0YkZ4dUxtaGxhV05jYmk1b1pXbG1JaXdpWkNJNklpSXNJbTBpT2lKbGJtUnpWMmwwYUNJc0lta2lPbVpoYkhObGZRPT0KYGBg" } \ No newline at end of file diff --git a/.finder/templates/test_name_regex.json5 b/.finder/templates/test_name_regex.json5 new file mode 100644 index 00000000..ffabe436 --- /dev/null +++ b/.finder/templates/test_name_regex.json5 @@ -0,0 +1,11 @@ +{ + "name": "*", + "name_regex": "^project-[0-9]+$", + "description": "test name_regex matching", + "files": [ + { + "name_regex": "^main\\.py$", + "existence": "required" + } + ] +} \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index b53d643a..72bca0ee 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,9 +9,9 @@ # mark samfile as shell samfile linguist-language=Shell -go.work linguist-language=go -go.mod linguist-language=go -go.sum linguist-language=go +go.work linguist-language=Go +go.mod linguist-language=Go +go.sum linguist-language=Go docker-compose.yml linguist-language=Dockerfile @@ -29,3 +29,7 @@ docker-compose.yml linguist-language=Dockerfile /npm/site/src/templates.js linguist-vendored /.obsidian/** linguist-vendored + +/install2.sh linguist-vendored + +/.github/temp-stuff-idk linguist-vendored diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index dba7baf5..20f81cff 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -6,29 +6,61 @@ body: - type: markdown attributes: value: | - Thanks for taking the time to file a bug report! Please answer the questions below. - - type: input + Thanks for taking the time to file a bug report! Please fill in as much detail as you can. + + - type: textarea id: description attributes: label: Describe the bug description: What did you expect to happen? What happened instead? placeholder: "Detailed bug description" + validations: required: true - - type: input + + - type: textarea id: steps attributes: label: Steps to Reproduce description: Provide step-by-step instructions to reproduce the bug placeholder: | - 1. … - 2. … + 1. Run `./finder