summaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/tmux.conf')
-rw-r--r--tmux/tmux.conf22
1 files changed, 14 insertions, 8 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index fd9e737..49eb36a 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -28,8 +28,8 @@ setw -g automatic-rename on
# keybind to source the config file
bind-key r source-file ~/.config/tmux/tmux.conf
-set -g status-right-length 20
-set -g status-right '%a %Y-%m-%d %H:%M'
+set -g status-right-length 30
+set -g status-right '%A %d.%m.%Y %H:%M'
# tpm plugin manager
set -g @plugin 'tmux-plugins/tpm'
@@ -41,11 +41,12 @@ set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
-run '~/.tmux/plugins/tpm/tpm'
-
# Continuum settings (optional, but recommended for automatic saving)
set -g @continuum-restore 'on' # Automatically restore sessions on tmux start
-set -g @continuum-save-interval '15' # Save every 15 minutes (adjust as needed)
+set -g @continuum-save-interval '1' # Save every 1 minute (adjust as needed)
+
+set -g @resurrect-capture-pane-contents 'on' # Save contents of each pane
+set -g @resurrect-strategy 'nvim' # Save nvim sessions properly (remember where cursor was, etc.)
set -g mouse on
@@ -74,15 +75,18 @@ set-window-option -g pane-base-index 1
set-option -g renumber-windows on
## Use Ctrl + arrow keys without prefix key to switch panes
-bind -n C-Left select-pane -L
+bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
-bind -n C-Up select-pane -U
-bind -n C-Down select-pane -D
+bind -n C-Up select-pane -U
+bind -n C-Down select-pane -D
## Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
+bind -n S-Up swap-window -d -t + # Shift + Up Arrow to move up
+bind -n S-Down swap-window -d -t - # Shift + Down Arrow to move down
+
## Shift Ctrl vim keys to switch windows
bind -n C-H previous-window
bind -n C-L next-window
@@ -98,3 +102,5 @@ bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
## open new windows in the current directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
+
+run '~/.tmux/plugins/tpm/tpm'