Better tmux history navigation — toggle between N unique entries
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmux_clever_history-1.0.0.tar.gz.
File metadata
- Download URL: tmux_clever_history-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f8350cebf59a2e560c85daf59c189e30a2ad901f14e211a8541b4418f7270f
|
|
| MD5 |
c17b805ea62c9de9132e835d42f44e85
|
|
| BLAKE2b-256 |
24508ed47d29360fce80547a806523cbab99f8793af34fb08689b980260a94b8
|
File details
Details for the file tmux_clever_history-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tmux_clever_history-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38fdef4246abfdc8e5dd3cd1fa8279ea4cad41105584b1b8e17cd43a4f38b43e
|
|
| MD5 |
299d0a883d54e67788d494af49c3ed69
|
|
| BLAKE2b-256 |
d0961f63a20efcf205a8a73e6e85386d849115182b3db9ce57b0606b55f2f616
|