{"id":51836001,"url":"https://github.com/devoc09/herdr-equalize-vsplit","last_synced_at":"2026-07-22T21:32:00.851Z","repository":{"id":371569969,"uuid":"1301796471","full_name":"devoc09/herdr-equalize-vsplit","owner":"devoc09","description":"A Herdr plugin that splits the current pane to the right and equalizes column widths.","archived":false,"fork":false,"pushed_at":"2026-07-15T16:48:03.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-15T18:07:13.118Z","etag":null,"topics":["herdr-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/devoc09.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":"2026-07-15T15:57:55.000Z","updated_at":"2026-07-15T16:48:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/devoc09/herdr-equalize-vsplit","commit_stats":null,"previous_names":["devoc09/herdr-equalize-vsplit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devoc09/herdr-equalize-vsplit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devoc09%2Fherdr-equalize-vsplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devoc09%2Fherdr-equalize-vsplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devoc09%2Fherdr-equalize-vsplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devoc09%2Fherdr-equalize-vsplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devoc09","download_url":"https://codeload.github.com/devoc09/herdr-equalize-vsplit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devoc09%2Fherdr-equalize-vsplit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35778451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"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":["herdr-plugin"],"created_at":"2026-07-22T21:32:00.188Z","updated_at":"2026-07-22T21:32:00.846Z","avatar_url":"https://github.com/devoc09.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Equalize VSplit\n\nA [Herdr](https://herdr.dev) plugin that splits the current pane to the right\nand equalizes column widths in the active tab.\n\n## Requirements\n\n- [Herdr](https://herdr.dev) v0.7.0 or later (macOS)\n- [Go](https://go.dev) 1.26.2 or later (the plugin is built from source at install\n  time; no prebuilt binaries are shipped)\n\n## Installation\n\n```console\nherdr plugin install devoc09/herdr-equalize-vsplit\n```\n\nHerdr clones the repo, runs the `[[build]]` step (which compiles the Go source),\nand registers the plugin with the ID `devoc09.equalize-vsplit`.\n\n## Usage\n\n### List the available action\n\n```console\nherdr plugin action list --plugin devoc09.equalize-vsplit\n```\n\n### Invoke the action\n\n```console\nherdr plugin action invoke split --plugin devoc09.equalize-vsplit\n```\n\nThe first invocation splits the current pane to the right and sets both columns\nto equal width. Invoke it again on one of the new right-side panes to create\nthree equal columns. Each invocation finds every sibling split in the `right`\ndirection and recalculates the equal ratio for each column.\n\n### Comparison with normal vsplit\n\nStarting from two equal-width columns and splitting the right pane, the\ndifference between a normal vsplit and Equalize VSplit is:\n\n```\nBefore\n\n+--------------+--------------+\n|              |              |\n|              |              |\n|              |              |\n|      A       |      B       |\n|     50%      |     50%      |\n|              |              |\n|              |              |\n|              |              |\n+--------------+--------------+\n\nNormal vsplit\n\n+--------------+-------+------+\n|              |       |      |\n|              |       |      |\n|              |       |      |\n|      A       |   B   | New  |\n|     50%      |  25%  | 25%  |\n|              |       |      |\n|              |       |      |\n|              |       |      |\n+--------------+-------+------+\n\nEqualize VSplit\n\n+---------+---------+---------+\n|         |         |         |\n|         |         |         |\n|         |         |         |\n|    A    |    B    |   New   |\n|  33.3%  |  33.3%  |  33.3%  |\n|         |         |         |\n|         |         |         |\n|         |         |         |\n+---------+---------+---------+\n```\n\nA normal vsplit divides only the selected pane. Equalize VSplit divides the\nselected pane and then redistributes all horizontal columns to equal widths.\n\n### Bind a key (optional)\n\nAdd a `[[keys.command]]` entry to your Herdr config\n(`~/.config/herdr/config.toml`):\n\n```toml\n[[keys.command]]\nkey = \"prefix+v\"\ntype = \"plugin_action\"\ncommand = \"devoc09.equalize-vsplit.split\"\ndescription = \"Split and equalize columns\"\n```\n\nReload the running config without restarting Herdr:\n\n```console\nherdr server reload-config\n```\n\n### Check the action log\n\n```console\nherdr plugin log list --plugin devoc09.equalize-vsplit\n```\n\n## Uninstall\n\n```console\nherdr plugin uninstall devoc09.equalize-vsplit\n```\n\nOr by its install source:\n\n```console\nherdr plugin uninstall devoc09/herdr-equalize-vsplit\n```\n\n## Development\n\n### Local link\n\n```console\nherdr plugin link /path/to/herdr-equalize-vsplit\n```\n\n### Run tests\n\n```console\ngo test ./...\n```\n\n### Build\n\n```console\ngo build -o bin/herdr-equalize-vsplit .\n```\n\n## How it works\n\nThe plugin communicates with the running Herdr server through its\n[socket API](https://herdr.dev/docs/socket-api/). It calls `layout.export` to\nread the current tab's layout tree, walks every `right`-directional split, and\ncomputes equal ratios based on the number of columns spanned by each split. It\nthen calls `layout.set_split_ratio` for each split, ordered from root to leaf.\n\n## Limitations\n\n- Only `right`-direction splits are equalized; `down` splits are left untouched.\n- The plugin targets the pane identified by the `HERDR_PANE_ID` environment\n  variable.\n- Supported on macOS only (as declared in the manifest). Extending to Linux\n  requires no code changes beyond updating `platforms` in `herdr-plugin.toml`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevoc09%2Fherdr-equalize-vsplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevoc09%2Fherdr-equalize-vsplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevoc09%2Fherdr-equalize-vsplit/lists"}