-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Fix: keep track of window id #313
Conversation
will test this today |
Any progress on this? |
yo, sorry i forgot about this.
both are different functions, how will you use it together? |
I'm not sure what you mean. Are they not supposed to work together? |
yes toggle function does this : opens a terminal and runs command only once, now when u call this func again, it'll hide that terminal i.e toggle Runner () : this will open a terminal and run a command, calling this again will run that command in that opened terminal, if terminal isnt opened then it will open the terminal |
you can dm me on discord, tg etc or talk in my discord , tg server, would get quick response than here! |
Sorry, I don't have discord, and I'd rather handle this in one spot.
As I understand it, This PR fixes unexpected behavior when using |
i dont get this part, how toggle on runner? |
I left an example in the description of this PR, but the Runner uses the same code to manage the window which is all that really matters with toggling. |
hmm so you want a runner() term toggleable by toggle function? |
Exactly. |
oh i get it now 😁 |
When using
toggle()
on a terminal spawned usingrunner()
, a new window ID is assigned, but is not tracked, and so an error is thrown for an unknown window ID when attempting totoggle()
again.Found out about this when trying to assign a keybind to toggling a "runner" terminal
Then I used desdic/greyjoy.nvim to spawn a build job into this runner using the following.
With this, I kept getting the aforementioned error.