{"id":20316180,"url":"https://github.com/ehamiter/sublime-text-2-plugins","last_synced_at":"2025-04-11T17:40:54.540Z","repository":{"id":136756449,"uuid":"1797167","full_name":"ehamiter/Sublime-Text-2-Plugins","owner":"ehamiter","description":"Plugins that interact with Sublime Text 2","archived":false,"fork":false,"pushed_at":"2011-12-24T18:32:07.000Z","size":896,"stargazers_count":62,"open_issues_count":2,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T13:39:47.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/ehamiter/Sublime-Text-2-Plugins","language":"Python","has_issues":false,"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/ehamiter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-25T04:00:05.000Z","updated_at":"2023-09-08T16:29:27.000Z","dependencies_parsed_at":"2023-03-11T13:45:48.029Z","dependency_job_id":null,"html_url":"https://github.com/ehamiter/Sublime-Text-2-Plugins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehamiter%2FSublime-Text-2-Plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehamiter%2FSublime-Text-2-Plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehamiter%2FSublime-Text-2-Plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehamiter%2FSublime-Text-2-Plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehamiter","download_url":"https://codeload.github.com/ehamiter/Sublime-Text-2-Plugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451354,"owners_count":21105856,"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-11-14T18:24:46.265Z","updated_at":"2025-04-11T17:40:54.521Z","avatar_url":"https://github.com/ehamiter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sublime Text 2 Plugins\n===============================================\n\nThis is just a handy place to store some plugins I wrote for Sublime Text 2. Feel free to use, edit, extend, or improve as you see fit. It'd be nice to have credit if you post your updated version online, but it's not required. Treat all of this as MIT-licensed.\n\nNote: I'm using this particular repo not only as an online storage space for some scripts that I use, but also as a sort of personal portfolio-- as such, I don't have a section for issues, and I do not accept pull requests. \n\n\nblame.py\n========\n\nblame.py is a Git blame plugin. It takes selected lines as arguments and outputs the data into the console.\n\n![blame screenshot](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/blame.png)\n\n\nInstallation\n------------\n\nCopy **[blame.py](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/blame.py)** into your ST2 User packages folder *(Sublime Text 2 \u003e Preferences \u003e Browse Packages... \u003e User)*\n\n\nUsage\n-----\n\nSelect text or click desired line(s), then activate. \n\nI've added this to my User Key Bindings (\u0026#8984;-\u0026#8997;-b on a Mac):\n\n    { \"keys\": [\"super+alt+b\"], \"command\": \"blame\" }\n\n...and this in User/Default\\_(your OS)\\_Context.sublime-menu, which allows context menu access:\n\n    { \"command\": \"blame\", \"caption\": \"Blame…\" }\n\n\ngoogleIt.py\n===========\n\ngoogleIt.py is a Google looker-upper. It takes the scope of the file and appends it to a Google search of either the word under the cursor or the selected text.\n\n![googleIt screenshot](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/googleIt.png)\n\n\nInstallation\n------------\n\nCopy **[googleIt.py](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/googleIt.py)** into your ST2 User packages folder *(Sublime Text 2 \u003e Preferences \u003e Browse Packages... \u003e User)*\n\n\nUsage\n-----\n\nSelect text or click desired word, then activate. \n\nI've added this to my User Key Bindings (\u0026#8963;-\u0026#8997;-/ on a Mac):\n\n    { \"keys\": [\"ctrl+alt+forward_slash\"], \"command\": \"google_it\" }\n\n...and this in User/Default\\_(your OS)\\_Context.sublime-menu, which allows context menu access:\n\n    { \"command\": \"googleIt\", \"caption\": \"googleIt…\" }\n\n\npep8check.py\n============\n\npep8check.py is a [PEP 8 style guide](http://www.python.org/dev/peps/pep-0008/) plugin. It uses another Python program called [pep8.py](http://pypi.python.org/pypi/pep8). It looks like this:\n\n![blame screenshot](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/pep8check.png)\n\n\nInstallation\n------------\n\nCopy **[pep8check.py](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/pep8check.py)** into your ST2 User packages folder *(Sublime Text 2 \u003e Preferences \u003e Browse Packages... \u003e User)*\n\nTake a look through the code, and add or remove options that fit your needs. In the stock example, I have the following set up:\n\n    --repeat          show all occurrences of the same error\n    --verbose         print status messages, or debug with -vv\n    --repeat          show all occurrences of the same error\n    --ignore=errors   skip errors and warnings (e.g. E4,W)\n    --show-source     show source code for each error\n    --statistics      count errors and warnings\n    --count           print total number of errors and warnings to standard error and set exit code to 1 if total is not null\n\nPlay around with the options until you get what you want.\n\n**This plugin is dependent on pep8, which you must install yourself.** You can install, upgrade, uninstall pep8.py with these commands:\n\n    $ sudo pip install pep8\n    $ sudo pip install --upgrade pep8\n    $ sudo pip uninstall pep8\n\nOr if you don't have pip:\n\n    $ sudo easy_install pep8\n\nThere's also a package for Debian/Ubuntu, but it's not always the latest version:\n\n    $ sudo apt-get install pep8\n\n\nUsage\n-----\n\nI've added this to my User Key Bindings (\u0026#8984;-\u0026#8679;-8 on a Mac):\n    \n    { \"keys\": [\"super+shift+8\"], \"command\": \"pep8_check\" }\n\n...and this in User/Default\\_(your OS)\\_Context.sublime-menu, which allows context menu access:\n\n    { \"command\": \"pep8_check\", \"caption\": \"PEP8 Check…\" }\n\n\nsettings_refresh.py\n===================\n\nsettings_refresh.py is a ridiculously simple plugin. It saves your settings, which in effect, refreshes your changes, if any were made. I use this for tweaking my color scheme and then immediately seeing the changes.\n\n\nInstallation\n------------\n\nCopy **[settings_refresh.py](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/settings_refresh.py)** into your ST2 User packages folder *(Sublime Text 2 \u003e Preferences \u003e Browse Packages... \u003e User)*\n\n\nUsage\n-----\n\nAfter editing / adding / deleting a setting, or Theme, or Color Scheme, activate to refresh the changes. \n\nI've added this to my User Key Bindings (\u0026#8963;-\u0026#8984;-r on a Mac):\n\n    { \"keys\": [\"super+ctrl+r\"], \"command\": \"settings_refresh\" }\n\n\ngenerate_uuid.py\n================\n\ngenerate_uuid.py will generate a UUID (uuid4, to be specific-- if you want to know more, or if you should edit this to use uuid1, [read more here](http://stackoverflow.com/questions/1785503/when-should-i-use-uuid-uuid1-vs-uuid-uuid4-in-python)) or a series of UUIDs if you have selected multiple points.\n\n\nInstallation\n------------\n\nCopy **[generate_uuid.py](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/generate_uuid.py)** into your ST2 User packages folder *(Sublime Text 2 \u003e Preferences \u003e Browse Packages... \u003e User)*\n\n\nUsage\n-----\n\nActivate to generate a UUID. \n\nI've added this to my User Key Bindings (\u0026#8984;-\u0026#8679;-u on a Mac):\n\n    { \"keys\": [\"super+shift+u\"], \"command\": \"generate_uuid\" }\n\n\nlocal_validate.py\n=================\n\nUsing the Mac OS X application **Validator S.A.C.** (separate installation required, see below), local_validate.py will locally validate the current XHTML / HTML file. Handy if you have no internet access, as well as saving some traffic to W3C's often-overloaded servers.\n\n![local_validate screenshot](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/local_validate.png)\n\n\nInstallation\n------------\n\n1. Download **[Validator S.A.C.](http://habilis.net/validator-sac/)** and copy to your **Applications** folder.\n2. Copy **[local_validate.py](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/local_validate.py)** into your ST2 User packages folder *(Sublime Text 2 \u003e Preferences \u003e Browse Packages... \u003e User)*\n\nAfter installation, your browser may prompt you to select the default handler for `x-validator-sac`. Select **Validator S.A.C.**\n\n\nUsage\n-----\n\nActivate to locally validate the current XHTML / HTML file. \n\nI've added this to my User Key Bindings (\u0026#8963;-\u0026#8997;-v on a Mac):\n\n    { \"keys\": [\"ctrl+alt+v\"], \"command\": \"local_validate\" }\n\n\nspeak_to_me.py\n==============\n\nThis will allow you to select text in a Sublime Text 2 file, and have it read back to you. Macs only.\n\n\nInstallation\n------------\n\nCopy **[speak_to_me.py](https://github.com/ehamiter/Sublime-Text-2-Plugins/raw/master/speak_to_me.py)** into your ST2 User packages folder *(Sublime Text 2 \u003e Preferences \u003e Browse Packages... \u003e User)*\n\n\nUsage\n-----\n\nSelect some text, and activate by keypress.\n\nIf you do not select anything, the file's content in its entirety will be read.\n\n\nI've added this to my User Key Bindings (\u0026#8963;-\u0026#8997;-s on a Mac):\n\n    { \"keys\": [\"ctrl+alt+s\"], \"command\": \"speak_to_me\"}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehamiter%2Fsublime-text-2-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehamiter%2Fsublime-text-2-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehamiter%2Fsublime-text-2-plugins/lists"}