{"id":16772597,"url":"https://github.com/jonlabelle/trimmer","last_synced_at":"2025-03-15T13:31:04.115Z","repository":{"id":5263252,"uuid":"6441648","full_name":"jonlabelle/Trimmer","owner":"jonlabelle","description":"A Sublime Text plug-in for cleaning up whitespace.","archived":false,"fork":false,"pushed_at":"2024-04-26T23:03:01.000Z","size":802,"stargazers_count":111,"open_issues_count":0,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T02:11:17.336Z","etag":null,"topics":["plugin","python","sublime-text","whitespace"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"SeleniumHQ/selenium","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonlabelle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-10-29T14:17:49.000Z","updated_at":"2024-10-05T01:33:07.000Z","dependencies_parsed_at":"2022-08-26T13:41:53.600Z","dependency_job_id":"306125b4-2b00-4389-aeec-2894adb5158e","html_url":"https://github.com/jonlabelle/Trimmer","commit_stats":{"total_commits":232,"total_committers":4,"mean_commits":58.0,"dds":"0.39224137931034486","last_synced_commit":"06e45fcbb59eaf6a45864ac78cf3e9418f863869"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2FTrimmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2FTrimmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2FTrimmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2FTrimmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonlabelle","download_url":"https://codeload.github.com/jonlabelle/Trimmer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243735810,"owners_count":20339535,"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":["plugin","python","sublime-text","whitespace"],"created_at":"2024-10-13T06:43:19.088Z","updated_at":"2025-03-15T13:31:03.847Z","avatar_url":"https://github.com/jonlabelle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trimmer\n\n[![ci](https://github.com/jonlabelle/Trimmer/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jonlabelle/Trimmer/actions/workflows/ci.yml)\n[![Package Control Installs](https://img.shields.io/packagecontrol/dt/Trimmer.svg?label=installs)](https://packagecontrol.io/packages/Trimmer)\n[![Latest Release](https://img.shields.io/github/tag/jonlabelle/Trimmer.svg?label=version)](https://github.com/jonlabelle/Trimmer/releases)\n[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/jonlabelle/Trimmer/blob/master/LICENSE.md)\n\n\u003e [Trimmer](https://github.com/jonlabelle/Trimmer) is a [Sublime Text](http://www.sublimetext.com) plug-in for cleaning up whitespace.\n\n## Features\n\n- Trim whitespace at the end of each line.\n- Trim whitespace at the start of each line.\n- Trim whitespace at the start and end of each line.\n- Trim whitespace from selection(s).\n- Delete empty, whitespace only lines.\n- Collapse multiple consecutive empty lines into one empty line.\n- Collapse multiple consecutive spaces into one space.\n- Trim empty, whitespace only lines at the beginning and end of file.\n- Remove blank space characters.\n- Normalize spaces (consecutive spaces reduced, empty lines removed and lines trimmed).\n- Tokenize a string by collapsing consecutive spaces, and trimming leading and trailing spaces.\n- Delete empty, whitespace only HTML and XML tags.\n- Remove code comments and collapse lines.\n- Delete adjacent duplicate lines.\n\n## Additional Features\n\nA **Replace Smart Characters** command that performs the following actions:\n\n- **Smart single quotes:** `’` _to_ `'`\n- **Smart double quotes:** `“` _to_ `\"`\n- **Prime:** `′` _to_ `'`\n- **Double Prime:** `″` _to_ `\"`\n- **German quotes:** `„` _to_ `\"` and `‚` _to_ `'`\n- **Ellipsis:** `…` _to_ `...`\n- **Em dash:** `—` _to_ `---`\n- **En dash:** `–` _to_ `--`\n- **Bullet:** `•` _to_ `*`\n- **Middle dot:** `·` _to_ `-`\n- **Em space** _to_ three spaces\n- **En space** _to_ two spaces\n- **Non-breaking space** _to_ one space\n- **Thin space** _to_ one space\n- **Hair space** _to_ one space\n- **Left angle quote:** `«` _to_ `\u003c\u003c`\n- **Right angle quote:** `»` _to_ `\u003e\u003e`\n- **Copyright symbol:** `©` _to_ `(C)`\n- **Trademark symbol:** `™` _to_ `(T)`\n- **Registered trademark symbol:** `®` _to_ `(R)`\n\n![ScreenShot](https://raw.githubusercontent.com/jonlabelle/Trimmer/master/screenshots/command_palette.png)\n\nWatch a [**Quick Demo**](https://raw.githubusercontent.com/jonlabelle/Trimmer/master/screenshots/demo.gif)\n\n## Install\n\nTrimmer is compatible with both Sublime Text 2 and 3 and all supported Operating Systems.\n\n### Package Control\n\nThe easiest, and recommended way to install Trimmer is using [Package Control](https://packagecontrol.io).\n\nFrom the main application menu, navigate to:\n\n- `Tools` -\u003e `Command Palette...` -\u003e `Package Control: Install Package`, type\n  the word **_Trimmer_**, then select it to complete installation.\n\n### Git\n\nTo install Trimmer using Git, change to your **Sublime Text Packages** directory\nand clone the [Trimmer repository](https://github.com/jonlabelle/Trimmer).\n\nFor example, on **OS X**... start a new **Terminal** session and enter the following\ncommands:\n\n```shell\n$ cd ~/Library/Application\\ Support/Sublime\\ Text\\ 3/Packages/\n$ git clone https://github.com/jonlabelle/Trimmer\n```\n\n### Manually\n\n**Download** and **extract** the [zip](https://github.com/jonlabelle/Trimmer/zipball/master)\nor [tarball](https://github.com/jonlabelle/Trimmer/tarball/master) to your\nSublime Text packages directory.\n\n**Default Sublime Text Packages Paths:**\n\n- **OS X:** `~/Library/Application Support/Sublime Text [2|3]/Packages`\n- **Linux:** `~/.Sublime Text [2|3]/Packages`\n- **Windows:** `%APPDATA%/Sublime Text [2|3]/Packages`\n\n\u003e **NOTE** Replace the `[2|3]` part with the appropriate Sublime Text\n\u003e version for your installation.\n\n## Usage\n\nAll commands are accessible from the **Command Palette** using prefix\n**_Trimmer_**, and in the **Main Menu** under `Edit` -\u003e `Line` -\u003e _Trimmer_ command.\n\n- [Command Palette screenshot](https://raw.githubusercontent.com/jonlabelle/Trimmer/master/screenshots/command_palette.png)\n- [Main Menu screenshot](https://raw.githubusercontent.com/jonlabelle/Trimmer/master/screenshots/main_menu.png)\n\n### Key Bindings\n\nThe _default_ key binding will trim trailing whitespace at the end of each of\nline (entire file).\n\n- **OS X**: `Ctrl + S`\n- **Linux**: `Ctrl + Alt + S`\n- **Windows**: `Ctrl + Alt + S`\n\n### Trimmer Command API\n\n| Command                            | Description                                                                                            | Context                   |\n| ---------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------- |\n| `trimmer`                          | trim whitespace at the end of each line                                                                | entire file               |\n| `trim_leading_whitespace`          | trim whitespace at the start of each line                                                              | selection, or entire file |\n| `trim_leading_trailing_whitespace` | trim whitespace at the start and end of each line                                                      | selection, or entire file |\n| `trim_selections`                  | trim whitespace from selection(s)                                                                      | selection                 |\n| `delete_empty_lines`               | delete empty, whitespace only lines                                                                    | selection, or entire file |\n| `collapse_lines`                   | collapse multiple consecutive empty lines into one empty line                                          | selection, or entire file |\n| `collapse_spaces`                  | collapse multiple consecutive spaces into one space                                                    | selection, or entire file |\n| `trim_edges`                       | trim empty, whitespace only lines at the beginning and end of the file                                 | entire file               |\n| `remove_blank_spaces`              | remove all blank space characters (tab, cr, ff, vt, space)                                             | selection, or entire file |\n| `normalize_spaces`                 | consecutive spaces reduced, empty lines removed and lines trimmed                                      | selection, or entire file |\n| `replace_smart_characters`         | replace smart characters (smart quotes, em/en dash, ellipsis, nbsp)                                    | selection, or entire file |\n| `tokenize_string`                  | convert a string to a token by collapsing consecutive spaces, and trimming leading and trailing spaces | selection, or entire file |\n| `delete_empty_tags`                | delete empty, whitespace only html and xml tags                                                        | selection, or entire file |\n| `remove_comments`                  | remove code comments and collapse lines                                                                | selection, or entire file |\n| `delete_adjacent_duplicate_lines`  | delete adjacent duplicate lines                                                                        | selection, or entire file |\n\n## Author\n\n[Jon LaBelle](https://jonlabelle.com)\n\n## License\n\nTrimmer is licensed under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Ftrimmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonlabelle%2Ftrimmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Ftrimmer/lists"}