{"id":20550345,"url":"https://github.com/dnmfarrell/hash-tidy","last_synced_at":"2025-04-14T11:17:23.818Z","repository":{"id":149703719,"uuid":"291513355","full_name":"dnmfarrell/Hash-Tidy","owner":"dnmfarrell","description":"Fight entropy and disorder! Tidy your Perl hashes in vim","archived":false,"fork":false,"pushed_at":"2020-10-18T19:51:07.000Z","size":159,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T11:17:18.161Z","etag":null,"topics":["perl","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim script","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/dnmfarrell.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-30T16:58:17.000Z","updated_at":"2020-09-12T15:21:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"b94406fd-3583-4fca-9eaf-341571bc4708","html_url":"https://github.com/dnmfarrell/Hash-Tidy","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/dnmfarrell%2FHash-Tidy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FHash-Tidy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FHash-Tidy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FHash-Tidy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnmfarrell","download_url":"https://codeload.github.com/dnmfarrell/Hash-Tidy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868767,"owners_count":21174758,"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":["perl","vim","vim-plugin"],"created_at":"2024-11-16T02:24:30.268Z","updated_at":"2025-04-14T11:17:23.811Z","avatar_url":"https://github.com/dnmfarrell.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hash-Tidy\n---------\nFight entropy and disorder! Tidy your Perl hashes in vim.\n\nIt can sort keys by length:\n\n![](hash-tidy-sort-only.gif)\n\nIt can align fat arrows:\n\n![](hash-tidy-align-only.gif)\n\nOr do both:\n\n![](hash-tidy-sort-align.gif)\n\nInstallation\n------------\nThis assumes you have Vim's builtin [filetype plugin option](http://vimdoc.sourceforge.net/htmldoc/filetype.html#:filetype-plugin-on)\nenabled. (e.g. something like `filetype plugin on` in your `.vimrc`).\n\nTo install as a plugin, save `plugin/hash-tidy.vim` to\n`~/.vim/plugin/hash-tidy.vim`.\n\nNext map shortcuts to run the routines. As this plugin works on Perl hashes,\nyou might put this code in `~/.vim/ftplugin/perl.vim`:\n\n```\nvnoremap \u003cbuffer\u003e \u003clocalleader\u003ea :HashTidyAlignRange\u003ccr\u003e\nvnoremap \u003cbuffer\u003e \u003clocalleader\u003es :HashTidySortRange\u003ccr\u003e\nvnoremap \u003cbuffer\u003e \u003clocalleader\u003esa :HashTidySortAlignRange\u003ccr\u003e\n```\n\nIn visual mode these map the shortcuts `leader` + s to sort, `leader` + a\nto align and `leader` + sa to sort and align.\n\nAlternatively append all of this code to `~/.vim/ftplugin/perl.vim`.\n\nLicense\n-------\nCopyright 2020 David Farrell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fhash-tidy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnmfarrell%2Fhash-tidy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fhash-tidy/lists"}