From 700418335023b045f1b00c2afa550095bbb42ea3 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 23 Dec 2024 20:00:02 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-23 20:00:02 --- .config/nvim/spell/en.utf-8.add | 2 + .config/nvim/spell/en.utf-8.add.spl | Bin 1748 -> 1774 bytes .config/tmux/tmux.conf | 104 ++++++++++++++++++---------- 3 files changed, 70 insertions(+), 36 deletions(-) diff --git a/.config/nvim/spell/en.utf-8.add b/.config/nvim/spell/en.utf-8.add index 268e76ff..38e15964 100644 --- a/.config/nvim/spell/en.utf-8.add +++ b/.config/nvim/spell/en.utf-8.add @@ -125,3 +125,5 @@ IDentity omnidirectionality PipeWire neovide +Fullscreen +dh diff --git a/.config/nvim/spell/en.utf-8.add.spl b/.config/nvim/spell/en.utf-8.add.spl index b5bd0ecab148510030fb6b184ca92af09998483f..6d7bb9c86cecad15068f0af15e88dc6c88dc9a80 100644 GIT binary patch delta 145 zcmV;C0B--(4ekvNR!L2BaAj<4GXDSo1HiEkIspd+VgUdEJ!q3k0V)FnX?2r!0XGwD z0c-(t0b>Dj0c8PY0RaF2DQ=Uj0b&79lMezO0SS{X0xtm{lU@R)0s;|}1p_4kKa(p1 zF%ds>17&P<0d4_v0d)ZZ00D=SZ38v|1Cyi!PXT6=^aJn#!;|F%I{_ZEAqBGma6TmM delta 119 zcmV--0EqwY4b%+|R!L2BaAj<4GXDSo1Fo?SIspO$Vv|n+Dgpv&lY9X;lg9yJ0X>r` z0v-VflSl$D0UeWg0;K{0|C1jBB>^pyMFTMrEp!8AY;*x`0doO$0RaF3b(4n!HUR>Y Zz5`DIRFe(_@By)t{{%Y$46{20vjNe3Ah7@d diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index f6aac235..ffc4324a 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -1,43 +1,110 @@ +# Needed for some graphics to work properly set -g default-terminal "tmux-256color" set -as terminal-features ',xterm-kitty:RGB' +# So keystrokes are forwarded correctly set -g xterm-keys on + +# don't let programs rename window set -g allow-rename off +# don't wait after escape sequences set -s escape-time 1 -# For image.nvim +# Fix some graphics issues set -gq allow-passthrough on set -g visual-activity off +# max lines in window history set -g history-limit 10000 + +# bind to reload config unbind r bind r source-file ~/.config/tmux/tmux.conf + +# bind C-t to prefix unbind C-t unbind C-b set -g prefix C-t +# cringe: will disable later set -g mouse on +# tmux renames window automatically setw -g automatic-rename on +# start indexing at 1 (based) set -g base-index 1 set -g pane-base-index 1 set-window-option -g pane-base-index 1 +# reset window numbers if layout changes set-option -g renumber-windows on +# ignore terminal bell set -g bell-action none +### PLUGINS + +# plugin manager set -g @plugin 'tmux-plugins/tpm' +# sensible defaults set -g @plugin 'tmux-plugins/tmux-sensible' +# better yank set -g @plugin 'tmux-plugins/tmux-yank' +# pretty minimal status set -g @plugin 'niksingh710/minimal-tmux-status' + +### Session management -- TODO: configure later + # set -g @plugin 'tmux-plugins/tmux-resurrect' # set -g @plugin 'tmux-plugins/tmux-continuum' +### NAVIGATION KEYBINDINGS + +# focus panes bind -n M-m select-pane -L bind -n M-n select-pane -D bind -n M-e select-pane -U bind -n M-i select-pane -R +# If we pressed prefix it's intentional; no need to confirm +bind x kill-window + +# This will kill the pane +# ONLY asks for confirmation if it's the last +# pane in the window +bind -n M-x run-shell "~/.config/tmux/confirm_kill_pane.sh; true" + +# Fullscreen pane +bind -n M-f resize-pane -Z + +# Swap the split bindings to be consistent with nvim +# v -> split right +# s -> split down +bind -n M-v split-window -h -c "#{pane_current_path}" +bind -n M-s split-window -v -c "#{pane_current_path}" + +# Resize pane +bind Left resize-pane -L 5 +bind Right resize-pane -R 5 +bind Up resize-pane -U 5 +bind Down resize-pane -D 5 + +bind v copy-mode +bind u next-window +bind l previous-window + +bind -n M-j swap-pane -t left +bind -n M-l swap-pane -D +bind -n M-u swap-pane -U +bind -n M-y swap-pane -t right + +# m to mark a pane, M to "swap" it with current pane +bind M swap-pane + +unbind -n M-Left +unbind -n M-Right +unbind -n M-Up +unbind -n M-Down + # Theme Settings set -g @minimal-tmux-use-arrow false set -g @minimal-tmux-status "top" @@ -59,40 +126,5 @@ bind-key b set-option status # Do not preserve the current working directory for new windows bind c new-window -c "" -# Swap the split bindings to be consistent with nvim -bind -n M-v split-window -h -c "#{pane_current_path}" -bind -n M-s split-window -v -c "#{pane_current_path}" - -bind x kill-window -# bind -n M-x killp -bind -n M-x run-shell "~/.config/tmux/confirm_kill_pane.sh; true" -bind -n M-f resize-pane -Z - -bind Left resize-pane -L 5 -bind Right resize-pane -R 5 -bind Up resize-pane -U 5 -bind Down resize-pane -D 5 -# bind -n M-Left resize-pane -L 5 -# bind -n M-Right resize-pane -R 5 -# bind -n M-Up resize-pane -U 5 -# bind -n M-Down resize-pane -D 5 - -bind - copy-mode -# bind -n M-u next-window -bind u next-window -# bind -n M-l previous-window -bind l previous-window - -bind -n M-j swap-pane -t left -bind -n M-l swap-pane -D -bind -n M-u swap-pane -U -bind -n M-y swap-pane -t right - -bind M swap-pane - -unbind -n M-Left -unbind -n M-Right -unbind -n M-Up -unbind -n M-Down run '/usr/share/tmux-plugin-manager/tpm'