{"id":14967349,"url":"https://github.com/rshaker/multiselect-blockly","last_synced_at":"2026-02-28T18:35:20.070Z","repository":{"id":235310806,"uuid":"790457059","full_name":"rshaker/multiselect-blockly","owner":"rshaker","description":"A Blockly plugin for multiple-selection and manipulation of top-level blocks. Uses custom context menus.","archived":false,"fork":false,"pushed_at":"2024-09-15T18:41:06.000Z","size":6261,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T19:36:28.202Z","etag":null,"topics":["blockly","mocha","multiselect","nodejs","plugin","puppeteer","ts-node","typescript","umd","webpack"],"latest_commit_sha":null,"homepage":"https://rshaker.github.io/multiselect-blockly/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rshaker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T23:04:57.000Z","updated_at":"2025-03-29T20:58:10.000Z","dependencies_parsed_at":"2024-07-07T09:44:33.482Z","dependency_job_id":"5ac8800e-10dc-4b4c-aed5-c960bf4d0294","html_url":"https://github.com/rshaker/multiselect-blockly","commit_stats":null,"previous_names":["rshaker/multiselect-blockly"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/rshaker/multiselect-blockly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshaker%2Fmultiselect-blockly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshaker%2Fmultiselect-blockly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshaker%2Fmultiselect-blockly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshaker%2Fmultiselect-blockly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rshaker","download_url":"https://codeload.github.com/rshaker/multiselect-blockly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rshaker%2Fmultiselect-blockly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29946877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:21:26.597Z","status":"ssl_error","status_checked_at":"2026-02-28T18:19:38.892Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockly","mocha","multiselect","nodejs","plugin","puppeteer","ts-node","typescript","umd","webpack"],"created_at":"2024-09-24T13:37:53.445Z","updated_at":"2026-02-28T18:35:20.047Z","avatar_url":"https://github.com/rshaker.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multiselect-blockly\n\n[![Built on Blockly](https://tinyurl.com/built-on-blockly)](https://github.com/google/blockly)\n\nA [Blockly](https://www.npmjs.com/package/blockly) plugin that allows for simultaneous selection and manipulation of multiple top-level blocks. Common operations include copy, paste, delete, duplicate, expand, collapse, inline, arrange--The usual Blockly actions, but for more than _one_ block. Block settings such as movable, editable, and deletable may also be toggled on or off using the the same set of context menu actions.\n\nTo activate multiselect mode, shift-click on a block _or_ use the rectangular selection tool (shift-click-drag on background). Selected blocks will appear grey. Clicking on the background or any unselected block will deactivate multiselect mode.\n\n#### Shift-click\n\n\u003c!-- \u003cimg width=\"500px\" src=\"./assets/plugin-shift-click.png\"\u003e --\u003e\n\u003cimg width=\"500px\" src=\"https://raw.githubusercontent.com/rshaker/multiselect-blockly/main/assets/plugin-shift-click.png\"\u003e\n\n#### Rectangle selection\n\n\u003c!-- \u003cimg width=\"500px\" src=\"./assets/plugin-rect-select.png\"\u003e --\u003e\n\u003cimg width=\"500px\" src=\"https://raw.githubusercontent.com/rshaker/multiselect-blockly/main/assets/plugin-rect-select.png\"\u003e\n\n#### Customizable context menu\n\n\u003c!-- \u003cimg width=\"500px\" src=\"./assets/plugin-context-menu.png\"\u003e --\u003e\n\u003cimg width=\"500px\" src=\"https://raw.githubusercontent.com/rshaker/multiselect-blockly/main/assets/plugin-context-menu.png\"\u003e\n\n## Installation\n\n### npm\n\n```bash\nnpm install @rshaker/multiselect-blockly\n```\n\n### unpkg\n\n```html\n\u003cscript src=\"https://unpkg.com/@rshaker/multiselect-blockly/dist/multiselect.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nThe following examples show how to inject the plugin into a Blockly workspace.\n\n### Using node:\n\n```js\nimport * as Blockly from \"blockly/core\";\nimport { MultiselectPlugin } from \"@rshaker/multiselect-blockly\";\n\nconst workspace = Blockly.getMainWorkspace();\nconst plugin = new MultiselectPlugin({}, workspace);\n\nplugin.init();\n```\n\nSee [test/workspace/index.ts](https://github.com/rshaker/multiselect-blockly/blob/main/test/workspace/index.ts) for a complete example, the live demo is [here](https://rshaker.github.io/multiselect-blockly/test/workspace).\n\n### Using a browser:\n\n```html\n\u003cdiv id=\"blocklyDiv\"\u003e\u003c/div\u003e\n\n\u003cscript src=\"https://unpkg.com/blockly@10.4.3/blockly.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/@rshaker/multiselect-blockly/dist/multiselect.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n    function createWorkspace(blocklyDiv, options) {\n        const optionsMgr = multiselect.OptionsMgr.getInstance();\n        optionsMgr.setOptions({\n            copyPasteToStorage: true,\n            copyPasteToClipboard: true,\n            hideDisabledMenuItems: false,\n            enableBlockMenu: true,\n            blockScope: {\n                // movable: true,\n            },\n            enableWorkspaceMenu: true,\n            workspaceScope: {\n                // select: false,\n            },\n            multiselectScope: {\n                // redo: true,\n            },\n        });\n        const workspace = Blockly.inject(blocklyDiv, options); // hardcoded blocklyDiv\n        const plugin = new multiselect.MultiselectPlugin(workspace);\n        window.MultiselectPlugin = plugin;\n        plugin.init();\n\n        return workspace;\n    }\n\n    document.addEventListener(\"DOMContentLoaded\", function () {\n        const toolbox = {\n            kind: \"flyoutToolbox\",\n            contents: [\n                {\n                    kind: \"block\",\n                    type: \"controls_if\",\n                },\n            ],\n        };\n\n        createWorkspace(document.getElementById(\"blocklyDiv\"), {\n            toolbox: toolbox,\n        });\n    });\n\u003c/script\u003e\n```\n\nSee [test/browser/unpkg-plugin.html](https://github.com/rshaker/multiselect-blockly/blob/main/test/browser/unpkg-plugin.html) for a complete example, the live demo is \u003ca href=\"https://rshaker.github.io/multiselect-blockly/test/browser/unpkg-plugin.html\"\u003ehere\u003c/a\u003e.\n\n## Compatibility\n\nThis plugin is currently compatible only with the most recent versions of Chrome. I hope to add testing for Edge, Safari and Firefox shortly, this package is still under active development, expect instability and bugs.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frshaker%2Fmultiselect-blockly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frshaker%2Fmultiselect-blockly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frshaker%2Fmultiselect-blockly/lists"}