{"id":13638124,"url":"https://github.com/xonsh/xontrib-abbrevs","last_synced_at":"2026-03-02T05:31:45.627Z","repository":{"id":65926871,"uuid":"601669299","full_name":"xonsh/xontrib-abbrevs","owner":"xonsh","description":"Command abbreviations. This expands input words as you type.","archived":false,"fork":false,"pushed_at":"2026-01-26T17:41:28.000Z","size":31,"stargazers_count":25,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-27T05:44:32.079Z","etag":null,"topics":["abbrev","cli","terminal","xonsh","xontrib"],"latest_commit_sha":null,"homepage":"","language":"Python","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/xonsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-14T15:08:14.000Z","updated_at":"2025-12-05T20:52:10.000Z","dependencies_parsed_at":"2025-12-08T20:00:08.703Z","dependency_job_id":null,"html_url":"https://github.com/xonsh/xontrib-abbrevs","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":"0.21052631578947367","last_synced_commit":"5fbd8bfaf7cab2ebda05bb8294e6fc14e65f29e5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/xonsh/xontrib-abbrevs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-abbrevs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-abbrevs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-abbrevs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-abbrevs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xonsh","download_url":"https://codeload.github.com/xonsh/xontrib-abbrevs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xonsh%2Fxontrib-abbrevs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":["abbrev","cli","terminal","xonsh","xontrib"],"created_at":"2024-08-02T01:00:40.528Z","updated_at":"2026-03-02T05:31:45.601Z","avatar_url":"https://github.com/xonsh.png","language":"Python","funding_links":[],"categories":["Tab-completions"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\nExpands input words as you type in xonsh shell.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nIf you like the idea click ⭐ on the repo and \u003ca href=\"https://twitter.com/intent/tweet?text=Nice%20xontrib%20for%20the%20xonsh%20shell!\u0026url=https://github.com/xonsh/xontrib-abbrevs\" target=\"_blank\"\u003etweet\u003c/a\u003e.\n\u003c/p\u003e\n\n\n## Installation\n\nTo install use pip:\n\n```bash\nxpip install xontrib-abbrevs\n# or: xpip install -U git+https://github.com/xonsh/xontrib-abbrevs\n```\n\n## Usage\n\nThis expands input words from `abbrevs` dictionary as you type.\nAdds ``abbrevs`` dictionary to hold user-defined \"command abbreviations.\nThe dictionary is searched as you type the matching words are replaced\nat the command line by the corresponding dictionary contents once you hit\n'Space' or 'Return' key.\n\nFor instance a frequently used command such as ``git status`` can be abbreviated to ``gst`` as follows:\n\n```xsh\nxontrib load abbrevs\nabbrevs['gst'] = 'git status'\ngst # Once you hit \u003cspace\u003e or \u003creturn\u003e 'gst' gets expanded to 'git status'.\n```\n\none can set a callback function that receives current buffer and word to customize the expanded word based on context\n\n```xsh\nabbrevs['ps'] = lambda buffer, word: \"procs\" if buffer.text.startswith(word) else word\n```\n\nIt is also possible to set the cursor position after expansion with,\n\n```xsh\nabbrevs['gp'] = \"git push \u003cedit\u003e --force\"\n```\n\n## Credits\n\nThis package was created with [xontrib template](https://github.com/xonsh/xontrib-template).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxonsh%2Fxontrib-abbrevs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxonsh%2Fxontrib-abbrevs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxonsh%2Fxontrib-abbrevs/lists"}