Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pane numbering isn't correct #37

Open
madskjeldgaard opened this issue Jul 10, 2019 · 1 comment
Open

Pane numbering isn't correct #37

madskjeldgaard opened this issue Jul 10, 2019 · 1 comment

Comments

@madskjeldgaard
Copy link

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

@madskjeldgaard
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant