{"id":51610180,"url":"https://github.com/phildier/gnometerminal-tab-search","last_synced_at":"2026-07-12T07:02:00.974Z","repository":{"id":355045430,"uuid":"1226553896","full_name":"phildier/gnometerminal-tab-search","owner":"phildier","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-01T14:51:57.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T16:29:57.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phildier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01T14:49:33.000Z","updated_at":"2026-05-01T14:52:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/phildier/gnometerminal-tab-search","commit_stats":null,"previous_names":["phildier/gnometerminal-tab-search"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/phildier/gnometerminal-tab-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phildier%2Fgnometerminal-tab-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phildier%2Fgnometerminal-tab-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phildier%2Fgnometerminal-tab-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phildier%2Fgnometerminal-tab-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phildier","download_url":"https://codeload.github.com/phildier/gnometerminal-tab-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phildier%2Fgnometerminal-tab-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35384619,"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-07-12T02:00:06.386Z","response_time":87,"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":"2026-07-12T07:01:59.408Z","updated_at":"2026-07-12T07:02:00.964Z","avatar_url":"https://github.com/phildier.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gnometerminal-tab-search\n\nA keyboard-triggered fuzzy tab switcher for GNOME Terminal. Press a hotkey from anywhere on the desktop and a rofi fuzzy-search popup lists every open GNOME Terminal tab by title. Type to filter, press Enter to jump to the selected tab.\n\n## How it works\n\n**Tab enumeration** — GNOME Terminal does not expose tab titles over DBus. The `org.gnome.Terminal.Terminal0` interface has no readable properties for this. The only reliable path is the AT-SPI accessibility tree, read via the Python `gi`/`Atspi` bindings.\n\n**Tab switching** — a `gdbus call` on `org.gtk.Actions.SetState` with the `active-tab` action and an integer index, targeting `/org/gnome/Terminal/window/1`.\n\n**Window focus** — `xdotool search --class gnome-terminal-server windowactivate --sync`.\n\n**Multi-window support** — when more than one GNOME Terminal window is open, tab names are prefixed with `[window-title]` to disambiguate.\n\n**Python version detection** — the `tab-search` shell wrapper iterates candidate Python binaries (PATH-based names first, then absolute `/usr/bin/python3.x` paths as a fallback) to find one that can `import gi`. This handles systems where asdf/pyenv shims shadow the system Python that has `python3-gi` installed. If no suitable Python is found, the script prints a fix hint and exits with a non-zero status.\n\n## Requirements\n\n- Ubuntu 24.04 or any GNOME desktop with GNOME Terminal\n- `rofi` (fuzzy picker UI)\n- `python3-gi` and `gir1.2-atspi-2.0` (AT-SPI Python bindings)\n- `xdotool` (window focus)\n- `libglib2.0-bin` (provides `gdbus`)\n- Python 3.9 or later with `gi` importable\n\n## Installation\n\nClone the repository and run the installer. The installer installs apt dependencies and registers the GNOME keyboard shortcut via `gsettings` (persists across reboots via dconf).\n\n```bash\ngit clone https://github.com/phildier/gnometerminal-tab-search.git\ncd gnometerminal-tab-search\n./install.sh              # default keybinding: Super+F8\n./install.sh '\u003cSuper\u003eF9'  # custom keybinding\n```\n\nThe installer runs:\n\n```\nsudo apt install -y rofi python3.12 python3-gi gir1.2-atspi-2.0 xdotool libglib2.0-bin\n```\n\nThen registers a GNOME custom shortcut named \"Terminal Tab Search\" pointing to the `tab-search` script in the cloned directory.\n\n## Keybinding constraints\n\nSome key combinations are unavailable to custom GNOME shortcuts:\n\n- `Super+\u003cletter\u003e` combos (e.g. `Super+i`) are silently intercepted by GNOME Shell and never reach custom keybindings.\n- `Ctrl+Alt+F\u003cN\u003e` combos switch virtual terminals at the kernel level — avoid these entirely.\n\nSafe combinations include `Super+F\u003cN\u003e` and `Ctrl+Shift+\u003ckey\u003e`. The default is `Super+F8`.\n\n## Changing the keybinding after install\n\n```bash\ngsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding '\u003cSuper\u003eF9'\n```\n\n## Files\n\n| File | Purpose |\n|---|---|\n| `tab-search` | Shell wrapper — entry point, finds a Python with `gi` available |\n| `tab-search.py` | Python logic — AT-SPI tab enumeration, rofi picker, DBus switch |\n| `install.sh` | Installs apt dependencies and registers the GNOME keyboard shortcut |\n\n## Usage without install.sh\n\nIf you prefer to wire up the keybinding manually, run `tab-search` directly or point any launcher at it:\n\n```bash\n./tab-search\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphildier%2Fgnometerminal-tab-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphildier%2Fgnometerminal-tab-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphildier%2Fgnometerminal-tab-search/lists"}