{"id":50802485,"url":"https://github.com/shaunchander/kitty-worktree","last_synced_at":"2026-06-12T21:33:19.097Z","repository":{"id":359672922,"uuid":"1239060872","full_name":"shaunchander/kitty-worktree","owner":"shaunchander","description":"🌲 Jump between git worktrees in kitty with per-repo session layouts.","archived":false,"fork":false,"pushed_at":"2026-05-22T21:10:07.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T23:34:15.733Z","etag":null,"topics":["kitty","kitty-config","kitty-terminal"],"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/shaunchander.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-05-14T18:11:50.000Z","updated_at":"2026-05-22T21:10:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shaunchander/kitty-worktree","commit_stats":null,"previous_names":["shaunchander/kitty-worktree"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/shaunchander/kitty-worktree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunchander%2Fkitty-worktree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunchander%2Fkitty-worktree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunchander%2Fkitty-worktree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunchander%2Fkitty-worktree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaunchander","download_url":"https://codeload.github.com/shaunchander/kitty-worktree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunchander%2Fkitty-worktree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34263872,"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-06-12T02:00:06.859Z","response_time":109,"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":["kitty","kitty-config","kitty-terminal"],"created_at":"2026-06-12T21:33:16.290Z","updated_at":"2026-06-12T21:33:19.078Z","avatar_url":"https://github.com/shaunchander.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🌲 kitty-worktree\u003c/h1\u003e\n\u003cp align=\"center\"\u003eJump between git worktrees in kitty with per-repo session layouts.\u003c/p\u003e\n\n- ✅ fuzzy picker to switch between worktrees\n- ✅ auto-creates tabs with configured pane layouts (splits, editors, shells)\n- ✅ focuses existing tab if the worktree is already open\n- ✅ per-repo config via `.kitty-worktree.toml` or centralized config\n- ✅ template variables for branch, repo name, path\n- ✅ zero dependencies — just Python 3.11+ and kitty\n\n## Getting started\n\nSymlink the kitten into your kitty config:\n\n```bash\nln -sf /path/to/worktree.py ~/.config/kitty/worktree.py\n```\n\nAdd a keybinding in `kitty.conf`:\n\n```conf\nmap ctrl+shift+w kitten worktree.py\n```\n\n🎉 Press `ctrl+shift+w` in any git repo with worktrees and pick one — kitty opens a new tab with your configured layout.\n\n## Configuration\n\nkitty-worktree looks for config in this order:\n\n1. `.kitty-worktree.toml` in the worktree directory\n2. `.kitty-worktree.toml` in the repo root\n3. `~/.config/kitty/worktree.toml` (centralized, pattern-matched)\n4. Built-in default (nvim + shell split)\n\n### Per-repo config\n\nDrop a `.kitty-worktree.toml` in your repo root.\n\n**Option 1: Reference a session file (recommended for shell initialization)**\n\n```toml\n# Points to a kitty session .conf file\nsession_file = \"~/.config/kitty/sessions/myproject.conf\"\n```\n\nThis is the single source of truth approach - define your session layout once in a `.conf` file with proper shell initialization (`zsh -i -c \"nvim; exec zsh\"`), then reference it from multiple places. Perfect when you need `.zshrc` loaded, virtual environments activated, or other shell setup.\n\n**Option 2: Define panes inline**\n\n```toml\ntab_title = \"Backend ({branch})\"\n\n[[panes]]\ntitle = \"editor\"\ncommand = \"nvim\"\n\n[[panes]]\ntitle = \"tests\"\nlocation = \"hsplit\"\n\n[[panes]]\ntitle = \"server\"\nlocation = \"vsplit\"\n```\n\n### Centralized config\n\nUse `~/.config/kitty/worktree.toml` to define sessions matched by repo path.\n\n**With session file references (recommended):**\n\n```toml\n[[sessions]]\nmatch = \"api\"\nsession_file = \"~/.config/kitty/sessions/backend.conf\"\n\n[[sessions]]\nmatch = \"ui\"\nsession_file = \"~/.config/kitty/sessions/frontend.conf\"\n\n# Fallback for unmatched repos\n[default]\nsession_file = \"~/.config/kitty/sessions/default.conf\"\n```\n\n**Or inline pane definitions:**\n\n```toml\n[[sessions]]\nmatch = \"api\"\ntab_title = \"Backend ({basename})\"\n\n[[sessions.panes]]\ntitle = \"editor\"\ncommand = \"nvim\"\n\n[[sessions.panes]]\ntitle = \"tests\"\nlocation = \"hsplit\"\n\n[[sessions.panes]]\ntitle = \"server\"\nlocation = \"vsplit\"\n\n\n# Fallback for unmatched repos\n[default]\ntab_title = \"{repo} ({basename})\"\n\n[[default.panes]]\ntitle = \"editor\"\ncommand = \"nvim\"\n\n[[default.panes]]\ntitle = \"shell\"\nlocation = \"hsplit\"\n```\n\n### Template variables\n\n| Variable | Value |\n|---|---|\n| `{branch}` | Current branch name |\n| `{repo}` | Repository name |\n| `{path}` | Full worktree path |\n| `{basename}` | Worktree directory name |\n| `{FOLDER_NAME}` | Alias for `{basename}` (for .conf file compatibility) |\n| `{PROJECT_DIR}` | Alias for `{path}` (for .conf file compatibility) |\n\n### Pane options\n\n| Key | Description |\n|---|---|\n| `title` | Pane title |\n| `command` | Command to run (e.g. `nvim`) |\n| `location` | Split type: `hsplit`, `vsplit` (first pane creates the tab) |\n| `cwd` | Working directory (defaults to worktree path, supports templates) |\n\n## Requirements\n\n- [kitty](https://sw.kovidgoyal.net/kitty/) with remote control enabled\n- Python 3.11+\n- git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunchander%2Fkitty-worktree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaunchander%2Fkitty-worktree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunchander%2Fkitty-worktree/lists"}