tidalcycles / vim-tidal

Vim plugin for TidalCycles
MIT License
224 stars 56 forks source link

starting tidal and vim in a tmux session #29

Open ovitus opened 5 years ago

ovitus commented 5 years ago

How do I start tidalvim in a pre-existing tmux session? Whenever I launch it via tidalvim, it always creates a session for me. Otherwise I get an error like this: [root@gns333 ~]# tidalvim /usr/local/bin/tidalvim: line 18: /tmp//tmux-0/default,2875,0: No such file or directory /usr/local/bin/tidalvim: line 18: /tmp//tmux-0/default,2875,0: No such file or directory

gilfuser commented 5 years ago

Hi ovitus. I do it this way: I start tidal in one pane (split?) And nvim, or vim in another. And that's all.

Bests

On Thu, Jan 17, 2019, 1:17 PM ovitus notifications@github.com wrote:

How do I start tidalvim in a pre-existing tmux session? Whenever I launch it via tidalvim, it always creates a session for me. Otherwise I get an error like this: [root@gns333 ~]# tidalvim /usr/local/bin/tidalvim: line 18: /tmp//tmux-0/default,2875,0: No such file or directory /usr/local/bin/tidalvim: line 18: /tmp//tmux-0/default,2875,0: No such file or directory

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tidalcycles/vim-tidal/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/AI-AKuIso6LgY-m1m7JpmHUb2TWBLgVKks5vEJQNgaJpZM4aFzJm .

ovitus commented 5 years ago

Ok, but I can't execute code in the second pane. I'm using VIM. How do I get connect it to the Tidal session?

ryanlaws commented 5 years ago

I've been starting up letting the included bash script fire up Tidal for me, but I don't know if that's feasible for you. If not, check these lines - it looks like it will attach to a session named "tidal", although I haven't tested it: https://github.com/tidalcycles/vim-tidal/blob/master/bin/tidalvim#L16

rdtor commented 5 years ago

i get the same error /usr/local/bin/tidalvim: line 17: /tmp//tmux-1000/default,2700,3: No such file or directory /usr/local/bin/tidalvim: line 17: /tmp//tmux-1000/default,2700,3: No such file or directory