tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

Add tmux note to keybinding for list-keys (now safer)

Open eggbean opened this issue 3 years ago • 2 comments

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.

eggbean avatar Sep 20 '22 19:09 eggbean

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.

sturob avatar May 14 '23 17:05 sturob

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?

eggbean avatar May 15 '23 19:05 eggbean