Skip to main content

tmux-clever-history

Keep track of tmux window history and provide navigate them.

Unreviewed AI-generate code. However I use it.

Motivations

Toggle is great. But sometimes you want to toggle between three things. Also... I might like to do something really clever in the future

Alternatives and prior work

tmux has a build in last-window function to select the last window. You can implement something similar with tmux itself.

I found a project called tmux-history-stack, but it was written in bash and didn't have commands to go back two tabs.

Installation

pipx install tmux-clever-history

Add the following to your tmux.conf

set-hook -g after-select-window "run-shell 'tmux-clever-history hook #{last_window_id}'"

Usage

Add this to your tmux.conf

bind-key h run-shell "tmux-clever-history 1" # go to previous item, place current window in hisotry
bind-key H run-shell "tmux-clever-history --unique 1 2" # to to second most recent tab, pace previous item in history

Improvements

If you want to vibe code an improvement in a nice way. Release it as tmux-clever-history-whatever, open an issue on github and tell me what features you added.

Metadata

Release files for tmux-clever-history 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tmux-clever-history 1.0.0
File Size Uploaded Provenance Actions
tmux_clever_history-1.0.0.tar.gz 3.9 kB Without provenance Details for tmux_clever_history-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tmux-clever-history 1.0.0
File Interpreter ABI Platform Actions
tmux_clever_history-1.0.0-py3-none-any.whl Python 3 none any Details for tmux_clever_history-1.0.0-py3-none-any.whl

Total release size: 8.4 kB

Release files / tmux_clever_history-1.0.0.tar.gz

Download URL tmux_clever_history-1.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e2f8350cebf59a2e560c85daf59c189e30a2ad901f14e211a8541b4418f7270f
BLAKE2b-256 checksum
How to use checksums
24508ed47d29360fce80547a806523cbab99f8793af34fb08689b980260a94b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / tmux_clever_history-1.0.0-py3-none-any.whl

Download URL tmux_clever_history-1.0.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38fdef4246abfdc8e5dd3cd1fa8279ea4cad41105584b1b8e17cd43a4f38b43e
BLAKE2b-256 checksum
How to use checksums
d0961f63a20efcf205a8a73e6e85386d849115182b3db9ce57b0606b55f2f616
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for tmux-clever-history 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page