tmux-resurrect
tmux-resurrect copied to clipboard
Add tmux note to keybinding for list-keys (now safer)
This PR simply adds a -N note so that the chosen key binding appears in tmux list-keys / <prefix> + ? and "Describe key binding" <prefix> + /, which is useful when you have a lot of custom keybindings.
Using -N will fail to bind-keys on versions of tmux before 3.1 (changelog).
It is possible to add the note after the binding. This would fail in tmux < 3.2, but the binding will still work.
I knew it failed with tmux < v3.1, but as that came out three years ago and there are newer versions even in the RHEL and Debian repositories, I thought it would be reasonable to add it, but I didn't know about being able to add the note without it causing errors.
I don't have any easy way to test it, but is this better now?