tmux: Fix broken target window flag
tmux stopped supporting format strings for the -t flag
This commit is contained in:
@@ -51,14 +51,17 @@ bind < splitw -v -c "#{pane_current_path}"
|
|||||||
unbind '"'
|
unbind '"'
|
||||||
bind > splitw -h -c "#{pane_current_path}"
|
bind > splitw -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# tmux stopped supporting format string for -t, thus run-shell is
|
||||||
bind -N "Create a new window behind the current one with the same CWD" \
|
bind -N "Create a new window behind the current one with the same CWD" \
|
||||||
c neww -a -c "#{pane_current_path}" -t #{active_window_index}
|
c run-shell \
|
||||||
|
"tmux neww -at #{active_window_index} -c \"#{pane_current_path}\""
|
||||||
|
|
||||||
bind -N "Break off the current pane to a new window behind the current one" \
|
bind -N "Break off the current pane to a new window behind the current one" \
|
||||||
! breakp -a -t #{active_window_index}
|
! run-shell "tmux breakp -at #{active_window_index}"
|
||||||
|
|
||||||
bind -N "Source the config file" \
|
bind -N "Source the config file" \
|
||||||
R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; \
|
R \
|
||||||
|
source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; \
|
||||||
display "Sourced $XDG_CONFIG_HOME/tmux/tmux.conf"
|
display "Sourced $XDG_CONFIG_HOME/tmux/tmux.conf"
|
||||||
|
|
||||||
# Fullscreen pane (toggle)
|
# Fullscreen pane (toggle)
|
||||||
|
|||||||
Reference in New Issue
Block a user