tmux-plugins / tmux-sensible

basic tmux settings everyone can agree on
MIT License
1.73k stars 90 forks source link

Setting your prefix key to C-\ breaks key_binding_not_set #36

Closed futuro closed 3 years ago

futuro commented 7 years ago

If your prefix is C-\ then key_binding_not_set inserts a single escape character into the grep regex, which causes it to fail. The following line tests for and fixes this special case.

if [[ ${key} == '\' ]]; then key='\\'; fi

PR incoming.

josephjang commented 3 years ago

The PR to fix the grep pattern seems to be already filed.

As you know, tmux-sensible uses tmux list-keys | grep PATTERN to recognize the status of the key bindings. When the grep PATTERN is failed due to a wrong pattern, tmux list-keys does not terminate as expected. As the result, tmux fails to load the other plugins and it's just stuck.

I've filed the problem above as well in https://github.com/tmux/tmux/issues/2694.