Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: tmux bindings don't have notes, so they don't show up in C-b ? #2540

Closed
1 task done
lilyball opened this issue Dec 9, 2021 · 6 comments
Closed
1 task done
Assignees
Labels

Comments

@lilyball
Copy link

lilyball commented Dec 9, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

tmux 3.1 added the ability to attach notes to key bindings, with notes for all the default bindings. It also changed C-b ? to only list bindings with notes (this is tmux list-keys -N). It's still possible to list keys without notes using tmux list-keys -Na, but there's no binding for this.

The problem is home-manager includes its own key bindings, but these don't have notes, meaning they won't show up in C-b ?. Personally I think it was a mistake for tmux to suppress keys without notes by default, but perhaps this was done to try and force everyone to use notes?

In any case, home-manager's tmux module needs to attach notes to its keys. Otherwise they're not sufficiently discoverable for users. It should copy the current notes for any keys whose action has a default key binding, and use something sensible for any other keys.

This change should be safe to do on release branches from release-20.09 onwards, as nixos-20.09 contains tmux 3.1c (nixos-20.03 has tmux 3.0a so that's too old for this).

Maintainer CC

@marsam @toonn @expipiplus1

System information

- system: `"x86_64-darwin"`
 - host os: `Darwin 21.1.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `relaxed`
 - version: `nix-env (Nix) 2.4`
 - channels(lily): `"darwin, home-manager"`
 - channels(root): `"nixpkgs-21.11pre329221.c11d08f0239"`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`
@lilyball lilyball added bug triage Issues or feature request that have not been triaged yet labels Dec 9, 2021
@lilyball lilyball changed the title bug: tmux bindings don't have notes, so they don't show up in C-b ? bug: tmux bindings don't have notes, so they don't show up in C-b ? Dec 9, 2021
LogicalOverflow added a commit to LogicalOverflow/home-manager that referenced this issue Feb 20, 2022
Adds notes to the keybindings created in the tmux config making them
show up in C-b ? and tmux list-keys -N

Fixes nix-community#2540
sumnerevans pushed a commit to LogicalOverflow/home-manager that referenced this issue Feb 21, 2022
Adds notes to the keybindings created in the tmux config making them
show up in C-b ? and tmux list-keys -N

Fixes nix-community#2540
@stale
Copy link

stale bot commented Mar 9, 2022

Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

  • If this is resolved, please consider closing it so that the maintainers know not to focus on this.
  • If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

  • If you are also experiencing this issue, please add details of your situation to help with the debugging process.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

If you have nothing of substance to add, please refrain from commenting and allow the bot to close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information.

Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

@stale stale bot added the status: stale label Mar 9, 2022
@stale stale bot closed this as completed Mar 16, 2022
@lilyball
Copy link
Author

Argh, stale bots are the bane of my existence. Everything it says is a lie. People treat closed issues as closed, not as potential issues that were just shelved.

Closed issues stay in the system for people to search, read, cross-reference, or even reopen

This especially is wrong. I'm the author of this issue and even I can't reopen it!

Stale bots only serve to make users feel like their issues don't matter and discourage future issues. This is actually a pretty significant issue with the tmux module. My list-keys binding now hides most of my bound keys.

@lilyball
Copy link
Author

Hell, this issue is still even labeled as triage. Why the hell is the stale bot closing issues that were never even triaged?!?

@berbiche
Copy link
Member

Sorry about the situation.

@berbiche berbiche reopened this Mar 17, 2022
@stale stale bot removed the status: stale label Mar 17, 2022
@berbiche berbiche removed the triage Issues or feature request that have not been triaged yet label Mar 17, 2022
@toonn
Copy link
Contributor

toonn commented Mar 18, 2022

@lilyball, #2742 does address this, maybe that at least reduces the frustration.

@lilyball
Copy link
Author

@toonn That's wonderful, thanks for linking it 💕 I checked latest master but didn't think to check open PRs.

Also I apologize for my tone in my above comments. I was quite cranky but that's not an excuse.

jficz pushed a commit to jficz/home-manager that referenced this issue Apr 7, 2022
…munity#2742)

Adds notes to the keybindings created in the tmux config making them
show up in C-b ? and tmux list-keys -N

Fixes nix-community#2540
@teto teto mentioned this issue Aug 22, 2022
7 tasks
teto pushed a commit to teto/home-manager that referenced this issue Aug 22, 2022
…munity#2742)

Adds notes to the keybindings created in the tmux config making them
show up in C-b ? and tmux list-keys -N

Fixes nix-community#2540
spacekookie pushed a commit to spacekookie/home-manager that referenced this issue Feb 10, 2023
…munity#2742)

Adds notes to the keybindings created in the tmux config making them
show up in C-b ? and tmux list-keys -N

Fixes nix-community#2540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants