Can no longer bind-key to backslash key

25 views
Skip to first unread message

cyleh...@tactica.ca

unread,
May 12, 2020, 11:10:13 AM5/12/20
to tmux-users
It seems that in a recent tmux update, I can no longer use the following config:

bind-key \ split-window -h -c '#{pane_current_path}'

This setting now yields the following error in Tmux 3.1b:

unknown key: split-window

My guess is that \ is now conflicting with something recently introduced. Any way to get this working again?

Nicholas Marriott

unread,
May 12, 2020, 11:13:10 AM5/12/20
to cyleh...@tactica.ca, tmux-users
Quote it - '\'
> --
> You received this message because you are subscribed to the Google Groups "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/eb942bc6-b5b4-462d-83b3-c8f07b504e6f%40googlegroups.com.

cyleh...@tactica.ca

unread,
May 12, 2020, 11:16:33 AM5/12/20
to tmux-users

Nicholas Marriott

unread,
May 12, 2020, 11:18:22 AM5/12/20
to cyleh...@tactica.ca, tmux-users
It definitely works...


On Tue, 12 May 2020 at 16:16, <cyleh...@tactica.ca> wrote:
>
> Quoting doesn't appear to work either:
>
> bind-key '\' split-window -h -c '#{pane_current_path}'
>
> --
> You received this message because you are subscribed to the Google Groups "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/0a2d72bb-913c-4fe3-b85c-3c89cf14e532%40googlegroups.com.

Nicholas Marriott

unread,
May 12, 2020, 11:21:22 AM5/12/20
to cyleh...@tactica.ca, tmux-users
$ tmux -Ltest kill-server
$ cat x
bind-key '\' split-window -h -c '#{pane_current_path}'
$ tmux -Ltest -f x new -d
$ tmux -Ltest lsk '\'
bind-key -T prefix \\ split-window -h -c "#{pane_current_path}"
Reply all
Reply to author
Forward
0 new messages