{"id":13808806,"url":"https://github.com/Freyskeyd/atom-alignment","last_synced_at":"2025-05-14T03:31:32.185Z","repository":{"id":14564797,"uuid":"17280679","full_name":"Freyskeyd/atom-alignment","owner":"Freyskeyd","description":"Multi-line and multiple selection alignment package for atom","archived":false,"fork":false,"pushed_at":"2017-11-02T09:10:45.000Z","size":145,"stargazers_count":46,"open_issues_count":32,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-05-02T04:36:27.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/Freyskeyd.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}},"created_at":"2014-02-28T08:56:16.000Z","updated_at":"2023-07-21T07:52:04.000Z","dependencies_parsed_at":"2022-08-26T23:10:58.979Z","dependency_job_id":null,"html_url":"https://github.com/Freyskeyd/atom-alignment","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fatom-alignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fatom-alignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fatom-alignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fatom-alignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freyskeyd","download_url":"https://codeload.github.com/Freyskeyd/atom-alignment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225273280,"owners_count":17448076,"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-08-04T01:01:52.421Z","updated_at":"2024-11-19T00:31:07.299Z","avatar_url":"https://github.com/Freyskeyd.png","language":"CoffeeScript","funding_links":[],"categories":["CoffeeScript"],"sub_categories":[],"readme":"# atom-alignment package\n\n[Atom package](https://atom.io/packages/atom-alignment)\n\n\u003e Inspired by sublime text plugin ([sublime_alignment](https://github.com/wbond/sublime_alignment))\n\n## Usage\n\nA simple key-binding for aligning multi-line, multi-cursor and multiple selections in Atom.\n\nUse `ctrl+cmd+a` on Mac or `ctrl+alt+a` to align multiple matches. If you want to align the first match only, call `Atom Alignment:Align` from the command palette. The following examples all use the mentioned key binding to call `Atom Alignment:AlignMultiple`.\n\n```javascript\nvar a = b;\nvar ab = c;\nvar abcd = d;\nvar ddddd =d;\n```\n\n```javascript\nvar a     = b;\nvar ab    = c;\nvar abcd  = d;\nvar ddddd = d;\n```\n\nWith more than one selection\n\n```javascript\nvar a = b;    /* selection 1 */\nvar ab = c;   /* selection 1 */\nvar notMePlease='NOOOO';\nvar abcd = d; /* selection 2 */\nvar ddddd =d; /* selection 2 */\n```\n\n```javascript\nvar a     = b;\nvar ab    = c;\nvar notMePlease='NOOOO';\nvar abcd  = d;\nvar ddddd = d;\n```\n\nOn a single line started with `ctrl+cmd+a`\n\n```javascript\nvar a = b var cde =   d\n```\n\n```javascript\nvar a = b\nvar cde = d\n```\n\nWhen working with multiple cursors, the different lines are aligned at the best matching cursor position. In the following example the | shows the cursor position.\n\n```javascript\nvar a    =b var c|= d\nvar e c|=   f var g = h\nvar i c=j var k |= l\n```\n\n```javascript\nvar a    =b var c = d\nvar e c           = f var g = h\nvar i c=j var k   = l\n```\n\nYou can even align multiple matches\n\n```javascript\nlets = see = what := happens\na  = a  = b = c : d := e\n```\n\n```javascript\nlets = see = what      := happens\na    = a   = b = c : d := e\n```\n\n## License\n\nMIT © [Andre Lerche](https://github.com/papermoon1978)\n\nMIT © [Simon Paitrault](http://www.freyskeyd.fr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreyskeyd%2Fatom-alignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFreyskeyd%2Fatom-alignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreyskeyd%2Fatom-alignment/lists"}