npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tmux-fuzzy-motion

v0.0.9

Published

Fuzzy hint motion for tmux copy-mode

Readme

tmux-fuzzy-motion

日本語版はこちら

tmux-fuzzy-motion is a CLI for quick cursor jumps in tmux panes. It scans the current viewport, extracts jump targets, filters them with fuzzy search, and lets you jump with uppercase hints. Roman queries can also match Japanese text through Migemo.

Features

  • Works inside tmux copy-mode
  • start can also be launched outside copy-mode and enters copy-mode automatically
  • start --scope all can target every visible pane in the current window
  • Extracts URLs, paths, filenames, symbols, and general words from the current viewport
  • Supports fuzzy matching with fzf
  • Supports Migemo matching for alphabetic queries via jsmigemo
  • Preserves pane colors while drawing the overlay
  • Reuses an external daemon process so matcher and Migemo startup stay warm
  • Uses single-key uppercase hints for fast selection
  • Opens the UI in a tmux popup instead of creating a persistent scratch window

Requirements

  • Node.js 22 or later
  • tmux 3.2 or later

Install

npm install -g tmux-fuzzy-motion@latest

If you prefer pnpm:

pnpm add -g tmux-fuzzy-motion@latest

Verify the installation:

tmux-fuzzy-motion doctor

You can also run it without a global install:

npx tmux-fuzzy-motion@latest doctor

tmux Configuration

Add these bindings to your tmux.conf:

bind-key -T copy-mode-vi s run-shell 'tmux-fuzzy-motion start #{pane_id} #{client_tty}'
bind-key -T copy-mode s run-shell 'tmux-fuzzy-motion start #{pane_id} #{client_tty}'

If you also want to launch it outside copy-mode, add a binding in the root table as well:

bind-key s run-shell 'tmux-fuzzy-motion start #{pane_id} #{client_tty}'

If you want to search across every visible pane in the current window, add a binding with --scope all.

bind-key S run-shell 'tmux-fuzzy-motion start --scope all #{pane_id} #{client_tty}'

If you want tmux to open the popup directly without going through the start subcommand, use this instead:

bind-key -T copy-mode-vi s run-shell -C "display-popup -E -B -x '##{popup_pane_left}' -y '##{popup_pane_top}' -w '#{pane_width}' -h '#{pane_height}' 'tmux-fuzzy-motion popup-live #{pane_id}'"
bind-key -T copy-mode s run-shell -C "display-popup -E -B -x '##{popup_pane_left}' -y '##{popup_pane_top}' -w '#{pane_width}' -h '#{pane_height}' 'tmux-fuzzy-motion popup-live #{pane_id}'"

[!NOTE] If you see an error like 'tmux-fuzzy-motion start %25 /dev/ttys000' returned 127 at step 2 below, you need to add tmux-fuzzy-motion to the PATH in the run-shell environment:

set-environment -g PATH "/path/to/node/bin:$PATH"

Reload tmux after editing the config:

tmux source-file ~/.tmux.conf

Usage

  1. Press the key bound to tmux-fuzzy-motion start.
  2. --scope current (the default) targets only the current pane and enters copy-mode first if needed.
  3. --scope all targets every visible pane in the current window by composing them into a single popup.
  4. Type a query in lowercase or symbols.
  5. Narrow the candidates with fuzzy matching.
  6. For alphabetic queries, Migemo also expands roman input to Japanese matches.
  7. Press an uppercase hint to jump immediately.
  8. In --scope all, the selected pane becomes active and enters copy-mode if needed before the cursor moves.
  9. Press Esc or Ctrl-[ to cancel.

Input Keys

  • A-Z: select a visible hint immediately
  • Enter: select the first visible match
  • Esc, Ctrl-[, Ctrl-g: cancel
  • Backspace, Ctrl-h: delete one character
  • Ctrl-w: delete the previous word
  • Ctrl-u: clear the whole query

Commands

tmux-fuzzy-motion start [--scope current|all] <pane-id> <client-tty>
tmux-fuzzy-motion popup-live <pane-id>
tmux-fuzzy-motion doctor

popup and daemon are internal subcommands. popup-live is intended for direct display-popup bindings.

--scope:

  • current: target only the current pane. This is the default.
  • all: target every visible pane in the current window.

Doctor

Use doctor to verify the local environment:

tmux-fuzzy-motion doctor

It checks:

  • Node.js version
  • tmux version
  • Migemo dictionary loading

Development

For local development from this repository:

pnpm install

You will need pnpm for the development workflow above.

Build once:

pnpm build

Watch mode:

pnpm run dev

Run the full local check:

pnpm check

Limitations

  • Targets are limited to the current viewport of each pane
  • --scope all targets only visible panes in the current window
  • Zoomed windows with --scope all only target the pane that is visible
  • Query input is ASCII-oriented
  • Exact behavior for combining characters is not fully guaranteed
  • Requires display-popup, so tmux 3.2 or later is mandatory
  • The query is drawn on the popup's bottom row, aligned to the right edge