Fix tmux split pane keybind

Horizontal pane splitting with \ stopped working, it apparently needs to
be quoted in order to be registered correctly. Vertical keybinding still
worked, but to keep consistency was quoted as well.
This commit is contained in:
Marty Oehme 2019-11-29 21:05:50 +01:00
parent 2f18a9d5ff
commit ba46f3ba74

View file

@ -109,8 +109,8 @@ bind-key x kill-pane
bind-key C-x kill-window
# Split Window into panes - automatically handled by plugin
bind-key \ split-window -h -c '#{pane_current_path}'
bind-key - split-window -v -c '#{pane_current_path}'
bind-key '\' split-window -h -c '#{pane_current_path}'
bind-key '-' split-window -v -c '#{pane_current_path}'
# Open a sessions chooser
bind C-j split-window -v "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"