Open madskjeldgaard opened 5 years ago
And here is my corrected version of tidalvim
:
#!/bin/bash
set -euf -o pipefail
VIM=${VIM:-"vim"}
TMUX=${TMUX:-"tmux"}
FILE=${FILE:-"$(date +%F).tidal"}
SESSION=${SESSION:-"tidal"}
TIDAL_BOOT_PATH=${TIDAL_BOOT_PATH:-""}
GHCI=${GHCI:-""}
args=${@:-$FILE}
# Check if tmux session "tidal" is running, attach only
# else, create new session, split windows and run processes
$TMUX -2 attach-session -t $SESSION || $TMUX -2 \
new-session -s $SESSION \; \
split-window -v -t $SESSION \; \
send-keys -t 1 "$VIM $args" C-m \; \
send-keys -t 2 "TIDAL_BOOT_PATH=$TIDAL_BOOT_PATH GHCI=$GHCI tidal" C-m \; \
select-pane -t 1
Hi!
I haven't used Tidal and Tidalvim in a while but recently updated to my current configuration (which uses NeoVim as the vim editor) and experienced some funky stuff with the default tmux startup script in the plugin folder.
When I start up the default script I get an error saying that pane 0 doesn't exist.
As a consequence (and fix) I corrected my startup script to target pane 1 and 2 which made everything work. Not sure what cause(s/d) this ? I'm on tmux v.2.9a on MacOS, using tidal v-1.0.13