{"id":51095600,"url":"https://github.com/gufranco/tmux-scroll-revamped","last_synced_at":"2026-06-24T06:02:09.053Z","repository":{"id":366695579,"uuid":"1277333701","full_name":"gufranco/tmux-scroll-revamped","owner":"gufranco","description":"Smart tmux mouse wheel: scroll vim/less/htop directly, copy-mode everywhere else. Native regex routing on tmux 3.1+, no process-tree walk, no per-event fork. 95%+ tested","archived":false,"fork":false,"pushed_at":"2026-06-22T23:07:46.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T01:06:45.546Z","etag":null,"topics":["bash","copy-mode","dotfiles","mouse","productivity","scroll","shell","terminal","tmux","tmux-plugin","tpm","wheel"],"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/gufranco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-06-22T19:56:01.000Z","updated_at":"2026-06-22T23:07:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gufranco/tmux-scroll-revamped","commit_stats":null,"previous_names":["gufranco/tmux-scroll-revamped"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gufranco/tmux-scroll-revamped","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-scroll-revamped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-scroll-revamped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-scroll-revamped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-scroll-revamped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gufranco","download_url":"https://codeload.github.com/gufranco/tmux-scroll-revamped/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gufranco%2Ftmux-scroll-revamped/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34719307,"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-24T02:00:07.484Z","response_time":106,"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":["bash","copy-mode","dotfiles","mouse","productivity","scroll","shell","terminal","tmux","tmux-plugin","tpm","wheel"],"created_at":"2026-06-24T06:02:08.239Z","updated_at":"2026-06-24T06:02:09.042Z","avatar_url":"https://github.com/gufranco.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003etmux-scroll-revamped\u003c/h1\u003e\n\n**Mouse wheel that does the right thing: scroll vim and less directly, copy-mode everywhere else.**\n\n[![Tests](https://github.com/gufranco/tmux-scroll-revamped/actions/workflows/tests.yml/badge.svg)](https://github.com/gufranco/tmux-scroll-revamped/actions/workflows/tests.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\n\u003c/div\u003e\n\n**native routing** · **no per-event fork** · **tmux 1.9 to 3.5** · **35** tests · **95%+** coverage\n\nMakes the mouse wheel behave. When the foreground program scrolls itself, vim, less, man, htop, the wheel goes straight to it. Everywhere else, the wheel enters copy-mode and scrolls the scrollback. On tmux 3.1+ the decision is a **native regex match** over `#{pane_current_command}`, so unlike mighty-scroll there is no process-tree walk and no shell forked on every wheel tick.\n\nBuilt from [tmux-plugin-template](https://github.com/gufranco/tmux-plugin-template).\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eNative routing\u003c/strong\u003e\u003cbr\u003eOn tmux 3.1+ the wheel rule is a tmux format match, zero forks per scroll event.\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eNo process walk\u003c/strong\u003e\u003cbr\u003eReads \u003ccode\u003e#{pane_current_command}\u003c/code\u003e directly instead of crawling the process tree.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eKnows your apps\u003c/strong\u003e\u003cbr\u003eA long default list of full-screen programs, fully configurable.\u003c/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGraceful fallback\u003c/strong\u003e\u003cbr\u003eOlder tmux without regex match uses a tiny check command instead.\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Usage\n\nInstall it and scroll. Over vim, less, htop, and friends the wheel scrolls the app. Over a shell prompt it scrolls the tmux history. Nothing to press.\n\n## Install\n\nWith [TPM](https://github.com/tmux-plugins/tpm), add to `~/.tmux.conf`:\n\n```tmux\nset -g @plugin 'gufranco/tmux-scroll-revamped'\n```\n\nPress `prefix + I`. Mouse mode is enabled automatically unless you opt out.\n\n## Configuration\n\n| Option | Default | Meaning |\n|--------|---------|---------|\n| `@scroll_revamped_passthrough_apps` | a long default list (vim, nvim, less, man, htop, fzf, lazygit, ...) | programs that receive the wheel directly |\n| `@scroll_revamped_mouse` | `on` | set to `off` to manage `mouse` yourself |\n| `@scroll_revamped_speed` | unset | a positive integer caps copy-mode wheel scrolling to that many lines per tick, taming fast trackpad flicks; unset keeps tmux's default |\n\nTo add an app, set the full list including the defaults you want to keep:\n\n```tmux\nset -g @scroll_revamped_passthrough_apps 'vim nvim less man htop my-tui-app'\n```\n\n## Compatibility\n\nWorks on every tmux version TPM supports, 1.9 and up, on Linux (x86_64 and arm64) and macOS (Intel and Apple Silicon). tmux 3.1+ gets the fork-free native routing; older versions fall back to a per-event check command.\n\n## Development\n\n```bash\nmake test    # bats suite\nmake lint    # shellcheck\nmake coverage  # kcov line coverage on Linux\n```\n\nThe match-pattern builder and membership check live in [`src/lib/scroll/scroll.sh`](src/lib/scroll/scroll.sh) as pure functions, fixture-tested, while the wheel bindings are wired in [`scroll-revamped.tmux`](scroll-revamped.tmux).\n\n## License\n\n[MIT](LICENSE), copyright Gustavo Franco.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgufranco%2Ftmux-scroll-revamped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgufranco%2Ftmux-scroll-revamped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgufranco%2Ftmux-scroll-revamped/lists"}