{"id":13448343,"url":"https://github.com/colinta/SublimeStringEncode","last_synced_at":"2025-03-22T09:31:14.739Z","repository":{"id":2152052,"uuid":"3097155","full_name":"colinta/SublimeStringEncode","owner":"colinta","description":"Converts characters from one \"encoding\" to another using a transformation (think HTML entities, not character encodings)","archived":false,"fork":false,"pushed_at":"2025-02-19T17:15:40.000Z","size":82,"stargazers_count":152,"open_issues_count":1,"forks_count":22,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-21T12:08:11.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colinta.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-01-03T20:45:30.000Z","updated_at":"2025-02-19T17:15:44.000Z","dependencies_parsed_at":"2024-12-17T11:01:53.697Z","dependency_job_id":null,"html_url":"https://github.com/colinta/SublimeStringEncode","commit_stats":{"total_commits":84,"total_committers":16,"mean_commits":5.25,"dds":"0.34523809523809523","last_synced_commit":"875ad7656257000af8ebd219ada3c9e592ad5679"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinta%2FSublimeStringEncode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinta%2FSublimeStringEncode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinta%2FSublimeStringEncode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinta%2FSublimeStringEncode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colinta","download_url":"https://codeload.github.com/colinta/SublimeStringEncode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937751,"owners_count":20535124,"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":[],"created_at":"2024-07-31T05:01:42.645Z","updated_at":"2025-03-22T09:31:14.726Z","avatar_url":"https://github.com/colinta.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"StringEncode\n============\n\nEncodes text.  \"Encode\" in this context refers to HTML entities or URL encoding, not character encodings.  Most of these commands work in both directions (e.g. you can encode *to* html entities, or *from* html entities).\n\n- Html entities\n- Css (e.g. unicode characters)\n- Xml entities\n- Json strings\n- Urls\n- Base64 encoding\n- Hash: Md5, Sha256, Sha512\n- Regex escape\n- SQL 'LIKE' escape\n- Hexadecimal / Decimal\n- Unicode Hexadecimal representation\n\nThis plugin was intended to be used with selections, but if you *don't* have any text selected, it will act on *the entire document*.  This can be handy (if you're base64-encoding a file, for instance), but also have unintended consequences.  For instance, you probably should not use `URL Decode` on an entire text document.\n\nYou can also encode the clipboard, use the `string_encode_paste` command, and you will be presented with a menu to choose the encoding, and the clipboard will be encoded and inserted.\n\nInstallation\n------------\n\n1. Using Package Control, install \"StringEncode\"\n\nOr:\n\n1. Open the Sublime Text Packages folder\n    - OS X: ~/Library/Application Support/Sublime Text 3/Packages/\n    - Windows: %APPDATA%/Sublime Text 3/Packages/\n    - Linux: ~/.Sublime Text 3/Packages/ or ~/.config/sublime-text-3/Packages\n\n2. clone this repo\n3. Install keymaps for the commands (see Example.sublime-keymap for my preferred keys)\n\nCommands\n--------\n\nThis list continues to grow, see [Default.sublime-commands](https://github.com/colinta/SublimeStringEncode/blob/master/Default.sublime-commands#L1) for the entire list.\n\n`string_encode_paste`: Converts the clipboard to the desired encoding.\n\n`html_entitize`: Converts characters to their HTML entity\n\n`html_deentitize`: Converts HTML entities to a character\n\n`url_encode`: Uses urllib.quote to escape special URL characters.\n- Accepts an `old_school` argument (default: `True`).  Setting it to `False`\n  will return `%20` instead of `+` when encoding spaces.\n\n`url_decode`: Uses urllib.unquote to convert escaped URL characters\n\n`json_escape`: Escapes a string and surrounds it in quotes, according to the JSON encoding.\n\n`json_unescape`: Unescapes a string (include the quotes!) according to JSON encoding.\n\n`base64_encode` (also `base16`, `base32`): Uses base16/32/64 to encode into base64\n\n`base64_decode`: Decodes from base16/32/64\n\n`gzip64_encode`: Gzip and then base64 encode\n\n`gzip64_decode`: Base64 decode and then Gunzip\n\n`md5_encode`: Uses sha package to create md5 hash\n\n`sha256_encode` (also `sha1`, `sha384`, `sha512`): Uses sha package to create sha1/256/384/512 hash\n\n`escape_regex`: Escapes regex meta characters\n\n`escape_like`: Escapes SQL-LIKE meta characters\n\n`safe_html_entitize`: Converts characters to their HTML entity, but preserves HTML reserved characters\n\n`safe_html_deentitize`: Converts HTML entities to a character, but preserves HTML reserved characters\n\n`xml_entitize`: Converts characters to their XML entity\n\n`xml_deentitize`: Converts XML entities to a character\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinta%2FSublimeStringEncode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinta%2FSublimeStringEncode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinta%2FSublimeStringEncode/lists"}