ミニマムな開発環境を追求したら tmux がまた必要になった。

nvim で term に依存しない。

unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"

# press mouse on pane
setw -g mouse on

# index start with 1
set -g base-index 1
setw -g pane-base-index 1

# colors
# set -g default-terminal "xterm-256color"
# https://stackoverflow.com/questions/60309665/neovim-colorscheme-does-not-look-right-when-using-nvim-inside-tmux
# Basically set what you see in echo $TERM when outside tmux
set-option -ga terminal-overrides ",alacritty:Tc"

# split windows
unbind s
bind s split-window -v

unbind v
bind v split-window -h

# switch panes using alt-hjkl
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l
bind l select-pane -R

# switch to next window
unbind Space
bind Space next-window

# jump to error location

#<C-F>

# git clone https://github.com/Morantron/tmux-fingers ~/.tmux/plugins/tmux-fingers
run-shell ~/.tmux/plugins/tmux-fingers/tmux-fingers.tmux

# git clone https://github.com/artemave/tmux_super_fingers.git ~/.tmux/plugins/tmux_super_fingers
set -ga update-environment EDITOR
run-shell ~/.tmux/plugins/tmux_super_fingers/tmux_super_fingers.tmux
set -g @super-fingers-extend ~/.tmux/plugins/tmux_super_fingers/tmux_super_fingers/custom_behavior.py

pane もいいけど、windows で運用した方がいいと思っている。

Date: 2023-11-27 Mon 10:32