ooof, this is rough. No shade, I absolutely love #kicadStepUp and what easyw has accomplished is super impressive.

I have a project I'm trying to use KSU as a dependency, and looking at the code shows it just not possible in it's present state.

It's a plate of spaghet' (mmm) with tons of side effect producing functions with many globals and hardcoded assumptions all over.

and this isn't just an idle gripe, I'm actually digging deep to see if I came up with a solution that won't result in a...

"here, I rewrote your entire project in a style you might no be comfortable with, please merge, kthnx bai, my employer appreciates* it, you're welcome." style PR, cause no one has time for that.

*) I don't actually have an employer (hire me?)

Hey! Turns out there is an un(der)documented feature that inserts the PCB into the current document instead of creating a new one. It's apparently enabled by a UI check box but I cannot seem to find it, but can be toggle by an API call, which is what I'm after anyhow.
@morgan Reading this was an emotional rollercoaster until I got to the footnote
@kwf I'm here to provide thrills and chills. Though the chills may be because I'm still sick.