I have a plugin which integrates a terminal that I can send commands through using a custom command I made. The only issue I'm having is that sometimes after the terminal gets clogged, it tends not to scroll to the latest input, forcing me to constantly switch to it and manually G
.
Since in my setup I already have the buffer & window ID, I thought I could add extend my custom command to switch to the terminal, G
, and switch back, after the command had been sent. Thing is, I haven't found any way to switch to another window solely by using its ID. How can this be done?
Alternatively, is there a way to send G
straight to a window? That way I won't have to jump between them.