{"id":13340913,"url":"https://github.com/gko/wrap","last_synced_at":"2025-04-23T12:14:42.533Z","repository":{"id":37602548,"uuid":"111722093","full_name":"gko/wrap","owner":"gko","description":"📦 vscode extension to wrap selection with symbols/pattern","archived":false,"fork":false,"pushed_at":"2023-01-06T01:32:00.000Z","size":7527,"stargazers_count":14,"open_issues_count":24,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T12:14:22.416Z","etag":null,"topics":["selection","symbols","vscode","vscode-extension","wrap"],"latest_commit_sha":null,"homepage":"","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/gko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-22T19:02:25.000Z","updated_at":"2024-07-16T01:28:32.000Z","dependencies_parsed_at":"2023-02-05T01:31:01.765Z","dependency_job_id":null,"html_url":"https://github.com/gko/wrap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gko%2Fwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gko%2Fwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gko%2Fwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gko%2Fwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gko","download_url":"https://codeload.github.com/gko/wrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250430595,"owners_count":21429324,"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":["selection","symbols","vscode","vscode-extension","wrap"],"created_at":"2024-07-29T19:24:30.479Z","updated_at":"2025-04-23T12:14:42.507Z","avatar_url":"https://github.com/gko.png","language":"TypeScript","readme":"# Wrap selection\n\nThis plugin allows you to wrap one or multiple selections with symbol/combination of symbols.\nYou can find it in [marketplace](https://marketplace.visualstudio.com/items?itemName=konstantin.wrapSelection)\n\n## Installation\n\nLaunch VS Code Quick Open (\u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eP\u003c/kbd\u003e), paste the following command, and press enter:\n```bash\next install konstantin.wrapSelection\n```\n\n## Usage\n\nSelect something → \u003ckbd\u003ectrl\u003c/kbd\u003e+\u003ckbd\u003eshift\u003c/kbd\u003e+\u003ckbd\u003eP\u003c/kbd\u003e → «Wrap selected text»\n\nor\n\npress \u003ckbd\u003e'\u003c/kbd\u003e, \u003ckbd\u003e\"\u003c/kbd\u003e, \u003ckbd\u003e«\u003c/kbd\u003e, \u003ckbd\u003e]\u003c/kbd\u003e, \u003ckbd\u003e\u003c\u003c/kbd\u003e or \u003ckbd\u003e)\u003c/kbd\u003e — both opening or closing symbol would work\n\n![features](https://github.com/gko/wrap/raw/master/features.gif)\n\n### Predefined patterns\n\nThrough «Wrap selected text» you can also use multiple symbols, i.e.:\n - `{{` → `{{text}}`\n - `\u003c!--` → `\u003c!--text--\u003e`\n - `\u003c%` → `\u003c%text%\u003e`\n\n### Custom user patterns\n![user patterns](https://github.com/gko/wrap/raw/master/userDefined.gif)\n\nYou can also do custom patterns through your settings:\n``` json\n{\n\t\"wrapSelection.patterns\": {\n\t\t\"log\": \"console.log(`${text}`, ${text})\",\n\t\t\"promise\": \"new Promise((yeah, nah) =\u003e yeah(${text}))\",\n\t\t\"=\u003e\": \"() =\u003e ${text}\"\n\t}\n}\n```\n\nAnd then you can do \u003ckbd\u003ectrl\u003c/kbd\u003e+\u003ckbd\u003eshift\u003c/kbd\u003e+\u003ckbd\u003eP\u003c/kbd\u003e → «Wrap selected text» → log:\n```js\nselection\n```\nwill become\n```js\nconsole.log(`selection`, selection);\n```\n\n## Found a bug?\nCreate a ticket [here](https://github.com/gko/wrap/issues)\nor insult me at mail[at]konstantin[dot]io\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgko%2Fwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgko%2Fwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgko%2Fwrap/lists"}