ref(tmux)
This commit is contained in:
parent
6999fe2faa
commit
c7c9ccf5a8
@ -148,15 +148,18 @@ bind -r "<" swap-window -d -t -1
|
||||
bind -r ">" swap-window -d -t +1
|
||||
|
||||
|
||||
_tmux_new_pane_size="30%"
|
||||
_tmux_main_pane_size="70%"
|
||||
|
||||
# Windows splitting
|
||||
bind -n M-Enter split-window -h -l 37% -c "#{pane_current_path}"
|
||||
bind -n M-Enter split-window -h -b -l $_tmux_new_pane_size -c "#{pane_current_path}"
|
||||
bind -n M-t split-window -v -l 20% -c "#{pane_current_path}"
|
||||
bind \\ split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
|
||||
# Default layout size
|
||||
bind -n M-u resize-pane -x 70%
|
||||
bind -n M-u resize-pane -x $_tmux_main_pane_size
|
||||
|
||||
|
||||
# Copy mode
|
||||
|
||||
@ -11,7 +11,7 @@ if ! tmux has-session -t "$SESSION"; then
|
||||
tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT"
|
||||
tmux send-keys -t "$SESSION:$MAINW" '$EDITOR' Enter
|
||||
tmux send-keys -t "$SESSION:$MAINW" , f f
|
||||
tmux splitw -t "$SESSION:$MAINW" -d -b -h -l 30% -c '#{pane_current_path}'
|
||||
tmux splitw -t "$SESSION:$MAINW" -d -b -h -l $_tmux_new_pane_size -c '#{pane_current_path}'
|
||||
fi
|
||||
|
||||
tmux switch-client -t "$SESSION"
|
||||
Loading…
x
Reference in New Issue
Block a user