commit a484ae88879886710baf0a6dc65e7c75811fa30e Author: Maxime Vorwerk Date: Thu Mar 7 20:55:36 2024 +0100 everything up until now diff --git a/plugins/tmux-sensible b/plugins/tmux-sensible new file mode 160000 index 0000000..25cb91f --- /dev/null +++ b/plugins/tmux-sensible @@ -0,0 +1 @@ +Subproject commit 25cb91f42d020f675bb0a2ce3fbd3a5d96119efa diff --git a/plugins/tmux-yank b/plugins/tmux-yank new file mode 160000 index 0000000..acfd36e --- /dev/null +++ b/plugins/tmux-yank @@ -0,0 +1 @@ +Subproject commit acfd36e4fcba99f8310a7dfb432111c242fe7392 diff --git a/plugins/tpm b/plugins/tpm new file mode 160000 index 0000000..99469c4 --- /dev/null +++ b/plugins/tpm @@ -0,0 +1 @@ +Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946 diff --git a/plugins/vim-tmux-navigator b/plugins/vim-tmux-navigator new file mode 160000 index 0000000..38b1d04 --- /dev/null +++ b/plugins/vim-tmux-navigator @@ -0,0 +1 @@ +Subproject commit 38b1d0402c4600543281dc85b3f51884205674b6 diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..cddceff --- /dev/null +++ b/tmux.conf @@ -0,0 +1,43 @@ +# Keybinds +bind -n M-H previous-window +bind -n M-L next-window + +# 1-Indexed window numbering +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 + +# Move pane splits +bind Up resize-p -U 2 +bind Down resize-p -D 2 +bind Left resize-p -L 2 +bind Right resize-p -R 2 + +# Better copy +set-window-option -g mode-keys vi +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 + +# Color fix +set-option -sa terminal-overrides ",xterm*:Tc" + +# Set prefix +unbind C-b +set -g prefix C-Space +bind C-Space send-prefix + +# Open panes in current dir +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'christoomey/vim-tmux-navigator' +set -g @plugin 'tmux-plugins/tmux-yank' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' +