tmux: Add notes to some bindings

This has the benefit that these bindings now show up in the output of
`list-keys -N` (bound to `<C-a>?`).
This commit is contained in:
2024-05-02 11:18:22 +02:00
parent 0b89388db0
commit 2fabe6dd4c

View File

@@ -51,15 +51,15 @@ bind < splitw -v -c "#{pane_current_path}"
unbind '"' unbind '"'
bind > splitw -h -c "#{pane_current_path}" bind > splitw -h -c "#{pane_current_path}"
# Create new window with CWD as PWD and place it after the current one bind -N "Create a new window behind the current one with the same CWD" \
bind c neww -a -c "#{pane_current_path}" -t #{active_window_index} c neww -a -c "#{pane_current_path}" -t #{active_window_index}
# 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" \
bind ! breakp -a -t #{active_window_index} ! breakp -a -t #{active_window_index}
# Resource config bind -N "Source the config file" \
bind 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)
bind F resizep -Z bind F resizep -Z