elanthia-online / illthorn

Electron-based FE
18 stars 10 forks source link

WIP: `new-window {character}` Command #187

Closed chriscoyier closed 1 year ago

chriscoyier commented 3 years ago

The idea is I'd do:

:new-window Quivet

To break off a new window with that character.

It's not currently working. I can :quit the current character, open a new window, but the attempt at connecting happens in the old window. It can be made to work if all you do is open the new window and manually :quit from the old window and manually :connect from the new window.

There is a lot of re-used functionality here too, so refactoring would need to get done to abstract away stuff like quitting, building new windows, and connecting sessions.

ondreian commented 3 years ago

I imagine that we will need to have the entry html respond to query parameters, like?character=Quivet&port=8001 and then close that session in window A, and do not autoconnect on screen B if these parameters are added, I'm not sure if there is some plug-n-play implementation by Sinderhous already out there for a lot of the drag-n-drop functionality