{"id":49550435,"url":"https://github.com/patrickfanella/tmux-popups","last_synced_at":"2026-05-02T22:06:04.773Z","repository":{"id":355271924,"uuid":"1227450378","full_name":"PatrickFanella/tmux-popups","owner":"PatrickFanella","description":"Small tmux popup toolkit with a TSV registry, generated bindings, and shell tools.","archived":false,"fork":false,"pushed_at":"2026-05-02T18:32:23.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-02T19:28:43.732Z","etag":null,"topics":["shell","shell-script","shell-tools","tmux","tpm","tpm-plugin"],"latest_commit_sha":null,"homepage":"","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/PatrickFanella.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-02T17:45:07.000Z","updated_at":"2026-05-02T18:32:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/PatrickFanella/tmux-popups","commit_stats":null,"previous_names":["patrickfanella/tmux-popups"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PatrickFanella/tmux-popups","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickFanella%2Ftmux-popups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickFanella%2Ftmux-popups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickFanella%2Ftmux-popups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickFanella%2Ftmux-popups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickFanella","download_url":"https://codeload.github.com/PatrickFanella/tmux-popups/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickFanella%2Ftmux-popups/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32550944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T21:31:48.061Z","status":"ssl_error","status_checked_at":"2026-05-02T21:31:46.574Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["shell","shell-script","shell-tools","tmux","tpm","tpm-plugin"],"created_at":"2026-05-02T22:05:50.351Z","updated_at":"2026-05-02T22:06:04.768Z","avatar_url":"https://github.com/PatrickFanella.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tmux-popups\n\nSmall tmux popup toolkit with a TSV registry, generated bindings, shared shell helpers, dependency checks, and optional local overrides.\n\n## Features\n\n- `Prefix+d` quick menu generated from registry rows\n- Direct bindings generated from the same rows\n- Default registry: `popups.tsv`\n- Local override registry: `~/.config/tmux-popups/popups.local.tsv`\n- Dependency status in help and CLI output\n- Doctor script for common tmux/TPM/config problems\n- Bash-only implementation; no build step\n- Generated config stored at `${XDG_CACHE_HOME:-$HOME/.cache}/tmux-popups/generated.conf`\n\n## Install with TPM\n\nAdd to `~/.tmux.conf` or your sourced tmux config:\n\n```tmux\nset -g @plugin 'PatrickFanella/tmux-popups'\n```\n\nReload tmux, then press TPM install key (`prefix + I`).\n\n## Install manually\n\n```sh\ngit clone https://github.com/PatrickFanella/tmux-popups.git ~/.config/tmux/plugins/tmux-popups\n```\n\nThen source the plugin entrypoint:\n\n```tmux\nrun-shell \"$HOME/.config/tmux/plugins/tmux-popups/tmux-popups.tmux\"\n```\n\nReload tmux:\n\n```sh\ntmux source-file ~/.tmux.conf\n```\n\n## Local development with TPM\n\nUseful when hacking on the plugin but still letting TPM manage load/update keys.\n\n```sh\ngit clone https://github.com/PatrickFanella/tmux-popups.git ~/Projects/tools/tmux-popups\nmkdir -p ~/.config/tmux/plugins\nln -sfn ~/Projects/tools/tmux-popups ~/.config/tmux/plugins/tmux-popups\n```\n\nKeep TPM registration in tmux config:\n\n```tmux\nset -g @plugin 'PatrickFanella/tmux-popups'\n```\n\nTPM will see `tmux-popups`; the symlink points it at your working tree.\n\n## Default bindings\n\nThe default registry includes the full popup set. Some rows need optional tools; dependency status is visible in `Prefix+C-h` and `scripts/list-popups.sh --deps`.\n\n| Key | Popup |\n| --- | --- |\n| `Prefix+d` | Quick menu |\n| `Prefix+C-h` | Popup help + dependency status |\n| `Prefix+C-g` | quick chat via [`ocq`](https://github.com/PatrickFanella/ocq) |\n| `Prefix+C-o` | opencode |\n| `Prefix+C-t` | shell |\n| `Prefix+C-n` | daily note |\n| `Prefix+C-y` | lazygit |\n| `Prefix+C-r` | yazi |\n| `Prefix+C-f` | ferrosonic |\n| `Prefix+C-b` | tmux key list |\n| `Prefix+C-z` | edit `~/.zshrc` |\n| `Prefix+C-S-r` | reload tmux config |\n\nSession switching is intentionally left to [`tmux-sessionx`](https://github.com/omerxx/tmux-sessionx). Example:\n\n```tmux\nset -g @plugin 'omerxx/tmux-sessionx'\nset -g @sessionx-bind 'j'\nset -g @sessionx-prefix 'on'\nset -g @sessionx-window-height '80%'\nset -g @sessionx-window-width '60%'\n```\n\nThen `Prefix+j` opens sessionx. If you prefer tmux's built-in picker, copy the `sessions` row from `examples/popups.optional.tsv`.\n\n## Plugin options\n\nSet these before the plugin loads:\n\n```tmux\nset -g @tmux-popups-menu-key 'd'\nset -g @tmux-popups-reload-key 'C-S-r'\nset -g @tmux-popups-default-width '80%'\nset -g @tmux-popups-default-height '80%'\nset -g @tmux-popups-local-registry '~/.config/tmux-popups/popups.local.tsv'\nset -g @tmux-popups-enable-vscode 'on'\nset -g @tmux-popups-vscode-command 'code-insiders .'\n```\n\nUse `-` in a row's width or height to inherit the default width/height options.\n\n## Registry format\n\nRows are tab-separated:\n\n```tsv\nid\tdirect_key\tmenu_key\ttitle\twidth\theight\tcommand\n```\n\n| Column | Meaning |\n| --- | --- |\n| `id` | Unique popup id used by `scripts/run-popup.sh` |\n| `direct_key` | Direct tmux binding after prefix, or `-` for none |\n| `menu_key` | Key in quick menu, or `-` for none |\n| `title` | Popup title |\n| `width` | tmux popup width, e.g. `80%`, or `-` for default |\n| `height` | tmux popup height, e.g. `80%`, or `-` for default |\n| `command` | Plugin-relative script path, or `-` for an interactive shell |\n\nBlank lines and lines beginning with `#` are ignored.\n\n## Local override registry\n\nDefault path:\n\n```text\n~/.config/tmux-popups/popups.local.tsv\n```\n\nThe plugin merges:\n\n```text\npopups.tsv\n  + popups.local.tsv\n  -\u003e generated bindings\n```\n\nIf a local row has the same `id` as a default row, the local row overrides it while keeping the original order. New local ids are appended.\n\nExample local override: move chat to another key and use default popup size:\n\n```tsv\nchat\tC-a\ta\tquick chat\t-\t-\tscripts/tools/chat.sh\n```\n\nExample local-only scratch shell:\n\n```tsv\nscratch\tC-s\ts\tscratch shell\t80%\t80%\t-\n```\n\nReload tmux after edits:\n\n```sh\ntmux source-file ~/.tmux.conf\n```\n\n## Create a popup script\n\nCreate `scripts/tools/hello.sh`:\n\n```sh\n#!/usr/bin/env bash\nset -euo pipefail\n\nprintf 'Hello from tmux-popups.\\n\\nPress Enter to close... '\nread -r _ || true\n```\n\nMake it executable:\n\n```sh\nchmod +x scripts/tools/hello.sh\n```\n\nAdd a row to `popups.tsv` or your local registry:\n\n```tsv\nhello\t-\th\thello\t75%\t75%\tscripts/tools/hello.sh\n```\n\nReload tmux and open it with `Prefix+d`, then `h`.\n\n## Optional examples\n\nExtra rows live in:\n\n```text\nexamples/popups.optional.tsv\n```\n\nCopy rows into your local registry or `popups.tsv`, install matching tools, then reload tmux.\n\nExamples:\n\n```tsv\nsessions\tC-j\tj\tsessions\t80%\t80%\tscripts/tools/sessions.sh\nchat\tC-g\tg\tquick chat\t80%\t80%\tscripts/tools/chat.sh\nyazi\tC-r\tr\tyazi\t80%\t80%\tscripts/tools/yazi.sh\n```\n\n`chat` needs [`ocq`](https://github.com/PatrickFanella/ocq).\n\n## List and dependency helpers\n\n```sh\nscripts/list-popups.sh --pretty\nscripts/list-popups.sh --deps\nscripts/list-popups.sh --tsv\nscripts/list-popups.sh --deps-tsv\n```\n\n`Prefix+C-h` shows the same dependency status inside tmux.\n\nDependency groups can contain alternatives, e.g. `glow|bat|less` means one of those commands is enough.\n\n## Doctor\n\nRun:\n\n```sh\nscripts/doctor.sh\n```\n\nIt checks:\n\n- tmux availability/version\n- plugin root\n- default/local registries\n- TPM path and local plugin entry\n- TPM registration in tmux config\n- generated config creation\n- `tmux source-file -n` validation\n- per-popup dependency status\n\nWarnings are informational. Failures exit nonzero.\n\n## Validate generated config\n\n```sh\nscripts/generate-config.sh\ntmux source-file -n ~/.cache/tmux-popups/generated.conf\ntmux source-file ~/.tmux.conf\n```\n\n## CI\n\nGitHub Actions runs:\n\n- `bash -n` on plugin scripts\n- ShellCheck\n- config generation smoke test\n\n## Optional tools used by default/extra rows\n\n- [`ocq`](https://github.com/PatrickFanella/ocq) for quick OpenCode chat\n- `opencode`\n- `task` / Taskwarrior\n- `nvim`, `vim`, `vi`, or `$EDITOR`\n- `tldr`, `man`, `less`\n- `khal`, `cal`\n- `python3`\n- `ssh`, `fzf`\n- `cliphist`, `wl-copy`, `wl-paste`\n- `newsboat`, `curl`\n- `journalctl`, `tail`, `watch`\n- `glow`, `bat`\n- `lazygit`, `yazi`, `ferrosonic`\n\n## How it works\n\n```text\npopups.tsv + optional local registry\n  -\u003e scripts/list-popups.sh --tsv\n  -\u003e scripts/generate-config.sh\n  -\u003e ~/.cache/tmux-popups/generated.conf\n  -\u003e tmux source-file\n```\n\n`scripts/run-popup.sh \u003cid\u003e` reads the merged registry and executes the matching command inside `display-popup`.\n\n## Files\n\n- `popups.tsv`: default popup registry\n- `~/.config/tmux-popups/popups.local.tsv`: optional local overrides\n- `examples/popups.optional.tsv`: optional popup row examples\n- `tmux-popups.tmux`: TPM/manual entrypoint\n- `scripts/list-popups.sh`: merged registry and dependency listing\n- `scripts/generate-config.sh`: generates tmux bindings\n- `scripts/run-popup.sh`: dispatches popup ids to tool scripts\n- `scripts/doctor.sh`: diagnostics\n- `scripts/popup-help.sh`: help popup\n- `scripts/lib.sh`: shared shell helpers\n- `scripts/tools/*.sh`: popup tool implementations\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickfanella%2Ftmux-popups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickfanella%2Ftmux-popups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickfanella%2Ftmux-popups/lists"}