{"id":27734744,"url":"https://github.com/josephtlyons/change-line-length","last_synced_at":"2026-07-14T04:32:53.413Z","repository":{"id":110868263,"uuid":"144372928","full_name":"JosephTLyons/change-line-length","owner":"JosephTLyons","description":"An Atom text editor package that allows you to cycle through different user-defined Preferred Line Length settings.","archived":false,"fork":false,"pushed_at":"2019-08-24T20:51:45.000Z","size":404,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-13T11:45:50.897Z","etag":null,"topics":["adjust","atom","atom-package","length","line","package","preferred"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/JosephTLyons.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2018-08-11T09:34:52.000Z","updated_at":"2021-05-25T17:56:11.000Z","dependencies_parsed_at":"2023-03-30T14:05:18.099Z","dependency_job_id":null,"html_url":"https://github.com/JosephTLyons/change-line-length","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/JosephTLyons/change-line-length","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fchange-line-length","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fchange-line-length/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fchange-line-length/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fchange-line-length/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JosephTLyons","download_url":"https://codeload.github.com/JosephTLyons/change-line-length/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fchange-line-length/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35446920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["adjust","atom","atom-package","length","line","package","preferred"],"created_at":"2025-04-28T13:39:58.098Z","updated_at":"2026-07-14T04:32:53.406Z","avatar_url":"https://github.com/JosephTLyons.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# change-line-length\n\n[![change-line-length download badge](https://badgen.net/apm/dl/change-line-length)](https://atom.io/packages/change-line-length)\n\n[![change-line-length version badge](https://badgen.net/apm/version/change-line-length)](https://atom.io/packages/change-line-length)\n\n[![change-line-length stars badge](https://badgen.net/apm/stars/change-line-length)](https://atom.io/packages/change-line-length)\n\nAn [Atom](https://atom.io) text editor package that lets you cycle through\ndifferent user-defined Preferred Line Length settings\n\n## `change-line-length` in Action:\n\n*Focus on the wrap guide.*\n![Action](./misc/change-line-length.gif)\n\n## History:\n\nBecause I frequently switch my Preferred Line Length between 80 characters (for\ndocumentation) and 100 characters (for code), I often spend too much time\nnavigating to the editor settings panel, scrolling down, and manually adjusting\nthis setting.  There exists some packages that allow you to insert multiple wrap\nguides, but I've found this solution to be somewhat of a distraction.  Also,\nmany packages, such as [`autoflow`](https://atom.io/packages/autoflow) and\n[`text-align`](https://atom.io/packages/text-align) are dependent upon the\nPreferred Line Length setting; having multiple wrap guides can be confusing when\nusing these packages as only one of the wrap guides will represent the true\nPreferred Line Length value being used.  So I decided it would be best to make a\npackage that allows the user to set as many Preferred Line Length settings as\nthey want and give them the option to cycle through them quickly, with key\ncommands.\n\n## Instructions:\n\nAtom doesn't seem to provide a way for the user to input values into an array in\nthe package settings in the same way one can input integers (correct me if I'm\nwrong!), so you must edit the `config.cson` to add your own custom preferred\nline length values.  Find the settings section for `change-line-length` in the\n`config.cson` file (Atom \u003e Config...) and add your preferred values:\n\n```cson\n\"change-line-length\":\n  preferredLineLengthValues: [\n    80\n    100\n    120\n    ...\n  ]\n```\n\nAfter you've saved you `config.cson` file, you'll need to restart Atom for the\nsettings to take effect (this is intentional as capturing the array values on\nthe fly during each run is inefficient).  You should be able to use the package\nto quickly change between your Preferred Line Length settings.\n\n## Note:\n\nThere seems to be \"bugginess\" associated with running this package if the\nsettings tab is open and set to the editor (the location of the Preferred Line\nLength setting).  So if you are experiencing any sort of strange flickering when\nrunning the package, try exiting out of the settings tab.  I can't seem to fix\nthis as this seems like a bug with Atom.  I've experienced many bugs when trying\nto set settings via the settings tab; these bugs include the setting not\nactually being recognized or settings \"flickering\" between an older and newer\nvalue when trying to update a value.  These bugs existed for me long before\ncreating this package and I think they are the root cause for the strange\nflickering that occurs when this package is ran while the settings tab is open.\nIf anyone has any sort of ideas for a fix, please let me know, as stability is\nalways a priority for me.\n\n## Thank You\nThanks to both @[Aerijo](https://github.com/Aerijo) and\n@[DamnedScholar](https://github.com/DamnedScholar) for helping me\n[here](https://discuss.atom.io/t/changing-an-atom-setting-through-code/57728)\nand\n[here](https://discuss.atom.io/t/bugginess-associated-with-changing-atom-settings-via-code/57772)\nwhen I ran into bugs putting this package together.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephtlyons%2Fchange-line-length","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosephtlyons%2Fchange-line-length","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephtlyons%2Fchange-line-length/lists"}