From 4c240653646fa20476b356f07e12f7c03502897d Mon Sep 17 00:00:00 2001 From: Dmitry Fedotov Date: Mon, 24 Feb 2020 12:30:47 +0300 Subject: [PATCH] Remove second pane for the ide window. Add run window. --- tmux/.tmux_dev_c.conf | 10 +++++----- tmux/tmux_dev_c.run.sh | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tmux/.tmux_dev_c.conf b/tmux/.tmux_dev_c.conf index 5c0effa..0b4b404 100644 --- a/tmux/.tmux_dev_c.conf +++ b/tmux/.tmux_dev_c.conf @@ -7,9 +7,9 @@ source ~/.tmux.conf -bind-key C-m select-pane -t 2 \; send-keys C-l "CFLAGS= build" Enter \; last-pane -bind-key C-g select-pane -t 2 \; send-keys C-l "CFLAGS=-g build" Enter \; last-pane -bind-key C-c select-pane -t 2 \; send-keys C-l "clean" Enter \; last-pane -bind-key C-r select-pane -t 2 \; send-keys C-l "run" Enter \; last-pane +bind-key C-m select-window -t 2 \; send-keys C-l "CFLAGS= build" Enter \; last-pane +bind-key C-g select-window -t 2 \; send-keys C-l "CFLAGS=-g build" Enter \; last-pane +bind-key C-c select-window -t 2 \; send-keys C-l "clean" Enter \; last-pane +bind-key C-r select-window -t 2 \; send-keys C-l "run" Enter \; last-pane -bind-key C-t select-pane -t 2 \; send-keys C-l "tags" Enter \; last-pane +bind-key C-t select-window -t 2 \; send-keys C-l "tags" Enter \; last-pane diff --git a/tmux/tmux_dev_c.run.sh b/tmux/tmux_dev_c.run.sh index f7644f1..1b5dc83 100755 --- a/tmux/tmux_dev_c.run.sh +++ b/tmux/tmux_dev_c.run.sh @@ -85,21 +85,20 @@ dot_header_template="${DOT_FILES_VIM_C_DEV}/header_template.txt" SESSION="dev-c" IDE_WND_NAME="ide" +RUN_WND="run" DEBUG_WND_NAME="debug" tmux_dev_c_conf="${DOT_FILES_TMUX}/.tmux_dev_c.conf" tmux source "${tmux_dev_c_conf}" \; new-session -d -s "${SESSION}" -n "${IDE_WND_NAME}" -tmux splitw -h -p 50 -tmux selectp -t 2 tmux send-keys "cd ${PRJ_DIR}" Enter tmux send-keys "source ${PRJ_INIT_FILE}" Enter tmux send-keys "clear" Enter +tmux send-keys "vi -u ${l_vimrc} ${PRJ_DIR}" Enter -tmux selectp -t 1 +tmux new-window -n "${RUN_WND}" tmux send-keys "cd ${PRJ_DIR}" Enter tmux send-keys "source ${PRJ_INIT_FILE}" Enter tmux send-keys "clear" Enter -tmux send-keys "vi -u ${l_vimrc} ${PRJ_DIR}" Enter tmux new-window -n "${DEBUG_WND_NAME}" tmux send-keys "cd ${PRJ_DIR}" Enter -- 2.39.5