Skip to main content

Smart tmux window names like IDE tablines

Project description

tmux-window-name

English | 中文

Smart tmux window names like IDE tablines.

Screenshot

Quick Example

Windows with same directory basename get disambiguated:

Path Display
~/projects/app projects/app
~/work/app work/app
~/projects/app (nvim) nvim:projects/app

See tests for more scenarios.

Installation

Recommended: Use with Oh My Tmux for best experience.

Homebrew (recommended)

brew install leftrk/tap/tmux-window-name

Add to ~/.tmux.conf:

run-shell $(brew --prefix tmux-window-name)/libexec/tmux_window_name.tmux

TPM

set -g @plugin 'leftrk/tmux-window-name'

Press prefix + I to install.

Common Options

Option Description Default
@tmux_window_name_max_name_len Max window name length 20
@tmux_window_name_use_tilde Replace $HOME with ~ False
@tmux_window_name_icon_style Icon display style 'name'

Example:

set -g @tmux_window_name_max_name_len "30"
set -g @tmux_window_name_icon_style "'name_and_icon'"

See docs/options.md for all configuration options.

Hooks

Automatic rename after nvim launch/exit or directory change.

See docs/hooks.md for examples.

Notes

  • Load before tmux-resurrect if using it
  • tmux rename-window "" re-enables auto-rename after manual rename

Development

uv sync --group dev
uv run pytest
uv run ruff format

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmux_window_name-1.0.2.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tmux_window_name-1.0.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file tmux_window_name-1.0.2.tar.gz.

File metadata

  • Download URL: tmux_window_name-1.0.2.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tmux_window_name-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fd1264c839e9122447a98b63a60c1a9d6b93494324a80453fd18d70abc5fe1e5
MD5 1a8d055d8d88a6251c8b1c7816dba5e3
BLAKE2b-256 8e20076391321559a576f6ba21e9a17bd3d901348df72f88bbbd27e9eb9bb523

See more details on using hashes here.

File details

Details for the file tmux_window_name-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: tmux_window_name-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tmux_window_name-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc74a0d3ba98f0c40aefb42774ec0a85597d6a8d700c742f21a2ec4b4ed4c27c
MD5 419282a18e50f733742874924612222e
BLAKE2b-256 31759ce470723d349ea291f01d4c5429e16120a6b9d8c604bf10d8fd84da9f6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page