Files
dotfiles/.config/tmux/vscode-tmux.conf
2025-05-26 07:39:19 +03:00

41 lines
969 B
Plaintext

# Change prefix key - Ctrl+Space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Enable mouse support
set -g mouse on
# Fix editor colors in tmux
set-option -sa terminal-overrides ",xterm*:Tc"
# Start window and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Open panes in current directory
bind _ split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
# Shift+Alt vim keys to switch windows
bind -n M-H previous-window
bind -n M-L next-window
# Fix Window namings in vscode
bind-key c new-window -n 'vsc'
set -g @plugin 'tmux-plugins/tmux-sensible'
run '~/.tmux/plugins/tpm/tpm'