{"id":16270227,"url":"https://github.com/allentdan/entertain","last_synced_at":"2026-04-13T18:02:34.074Z","repository":{"id":109588173,"uuid":"443507531","full_name":"AllentDan/entertain","owner":"AllentDan","description":"Just for fun","archived":false,"fork":false,"pushed_at":"2022-07-07T10:06:41.000Z","size":281,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T11:51:36.797Z","etag":null,"topics":["replace-text","svelte","todolist","treeview","typescript","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AllentDan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2022-01-01T09:24:20.000Z","updated_at":"2022-02-11T05:23:28.000Z","dependencies_parsed_at":"2023-07-28T22:30:44.994Z","dependency_job_id":null,"html_url":"https://github.com/AllentDan/entertain","commit_stats":{"total_commits":18,"total_committers":3,"mean_commits":6.0,"dds":0.2777777777777778,"last_synced_commit":"e4793495a9cd5ba6f34fbd86e1e3f0d937233ee5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllentDan%2Fentertain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllentDan%2Fentertain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllentDan%2Fentertain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllentDan%2Fentertain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllentDan","download_url":"https://codeload.github.com/AllentDan/entertain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247868006,"owners_count":21009359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["replace-text","svelte","todolist","treeview","typescript","vscode","vscode-extension"],"created_at":"2024-10-10T18:09:55.633Z","updated_at":"2026-04-13T18:02:34.020Z","avatar_url":"https://github.com/AllentDan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entertain Sample\n\nThis is a plugin for entertainment.\n\n## VS Code API\n\n- entertain.generateTree\n\n  You can generate a directory tree with specified width and depth. Paste the following clip to setting.json (Ctrl+shifit+p to open).\n  ``` json\n    \"entertain.generateTree\": {\n      \"num_width\": 10,\n      \"num_depth\": 4\n    }\n  ```\n- entertain.bulkReplace\n\n  Set the content and targets of bulk replacement in settings.json. Here is an example for formatting htmls from [tables generator](https://www.tablesgenerator.com/) to sphinx style:\n  ``` json\n    \"entertain.bulkReplace\": {\n      \"\u003ctable\u003e\": \"\u003ctable class=\\\"docutils\\\"\u003e\",\n      \"\u003ctd r\": \"\u003ctd align=\\\"center\\\" r\",\n      \"\u003ctd c\": \"\u003ctd align=\\\"center\\\" c\",\n      \"\u003ctd\u003e\": \"\u003ctd align=\\\"center\\\"\u003e\",\n      \"\u003cth r\": \"\u003cth align=\\\"center\\\" r\",\n      \"\u003cth c\": \"\u003cth align=\\\"center\\\" c\",\n      \"\u003ctd align=\\\"center\\\"\u003e$MM\": \"\u003ctd\u003e$MM\",\n      \"\u003ctd align=\\\"center\\\" rowspan=\\\"2\\\"\u003emodel config file\u003c/td\u003e\": \"\u003ctd rowspan=\\\"2\\\"\u003emodel config file\u003c/td\u003e\",\n      \"\u003ctd align=\\\"center\\\" rowspan=\\\"3\\\"\u003emodel config file\u003c/td\u003e\": \"\u003ctd rowspan=\\\"3\\\"\u003emodel config file\u003c/td\u003e\"\n    },\n  ```\n\n## How to customize a vscode plugin\n\nFirst, install node.js.\n```\n# Using Ubuntu\ncurl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -\nsudo apt-get install -y nodejs\n\n# Using Debian, as root\ncurl -fsSL https://deb.nodesource.com/setup_17.x | bash -\napt-get install -y nodejs\n```\n\nSecond, `npm install -g yo generator-code`.\n\nThird, `yo code`.\n\nFirth, install vsce: `npm i vsce -g`.\n\nFifth, run `vsce package`.\n\nFinally, publish it to [marketplace](https://marketplace.visualstudio.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallentdan%2Fentertain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallentdan%2Fentertain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallentdan%2Fentertain/lists"}