{"id":34456603,"url":"https://github.com/cohml/zsh-abbr-preview","last_synced_at":"2025-12-23T14:01:09.234Z","repository":{"id":329413072,"uuid":"1119495532","full_name":"cohml/zsh-abbr-preview","owner":"cohml","description":"zsh-abbr plugin extension that displays abbreviation expansion previews as you type.","archived":false,"fork":false,"pushed_at":"2025-12-19T11:14:53.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T04:11:46.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/cohml.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":"2025-12-19T11:09:05.000Z","updated_at":"2025-12-19T11:14:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cohml/zsh-abbr-preview","commit_stats":null,"previous_names":["cohml/zsh-abbr-preview"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cohml/zsh-abbr-preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohml%2Fzsh-abbr-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohml%2Fzsh-abbr-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohml%2Fzsh-abbr-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohml%2Fzsh-abbr-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cohml","download_url":"https://codeload.github.com/cohml/zsh-abbr-preview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cohml%2Fzsh-abbr-preview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27978257,"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","status":"online","status_checked_at":"2025-12-23T02:00:07.087Z","response_time":69,"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":[],"created_at":"2025-12-22T23:00:21.266Z","updated_at":"2025-12-23T14:01:09.226Z","avatar_url":"https://github.com/cohml.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# zsh-abbr-preview\n\nPreview [`zsh-abbr`](https://github.com/olets/zsh-abbr) abbreviation expansions as you type.\n\n## Demo\n\n```\n$ abbr g=git\nAdded the regular user abbreviation `g`\n$ g|  # \"|\" represents your cursor\n→ git\n```\n\nType an abbreviation and a preview of what it expands to will be displayed.\n\n## Installation\n\nSource `zsh-abbr-preview` in your `.zshrc` (either before or after sourcing `zsh-abbr`):\n\n```zsh\nsource /path/to/zsh-abbr-preview/zsh-abbr-preview.plugin.zsh\n```\n\nOr use your plugin manager:\n\n```zsh\n# zinit\nzinit light olets/zsh-abbr\nzinit light cohml/zsh-abbr-preview\n\n# oh-my-zsh\nplugins=(... zsh-abbr zsh-abbr-preview)\n```\n\n## Configuration\n\nCustomize the preview prefix by setting this variable before sourcing the plugin:\n\n```zsh\nZSH_ABBR_PREVIEW_PREFIX=\"...\"  # default: \"→ \"\n```\n\n## Requirements\n\n- `zsh-abbr`\n- Zsh 5.0+\n\n## How It Works\n\n`zsh-abbr-preview` hooks into `zle-line-pre-redraw` to check if your current input matches an abbreviation. It uses `zsh-abbr`'s own expansion functions (`_abbr_regular_expansion` and `_abbr_global_expansion`) to ensure the preview logic stays in sync with actual abbreviation behavior.\n\nThe preview should respects all `zsh-abbr` configurations, including:\n- `ABBR_REGULAR_ABBREVIATION_GLOB_PREFIXES` - glob patterns for valid prefixes (e.g., \"`*; `\")\n- `ABBR_REGULAR_ABBREVIATION_SCALAR_PREFIXES` - literal prefixes (e.g., \"`sudo `\")\n- `ABBR_SPLIT_FN` - custom word splitting function\n\nWhen an abbreviation is detected, its expansion is displayed below your prompt using `zle -M`. Multi-word abbreviations (e.g., `git s` → `git status`) are fully supported.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcohml%2Fzsh-abbr-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcohml%2Fzsh-abbr-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcohml%2Fzsh-abbr-preview/lists"}