ScottLogic / kdb-boothroyd

a prototype re-implementation of KDB Studio using JavaScript and Electron
Apache License 2.0
5 stars 2 forks source link

Make it possible to change database connection while editing the same file #72

Open gyorokpeter opened 2 years ago

ColinEberhardt commented 2 years ago

Good suggestion, I've updated the title to generalise a little

OiNutter commented 2 years ago

I think the way to do this would be to give the option to import a script from another tab. This could either be another button or we could make the open button have a submenu.

gyorokpeter commented 2 years ago

Not sure if I understand that, but it sounds too cumbersome from a UX perspective. It should be possible to switch servers without switching tabs or changing the tab contents. The dropdown that KDB Studio uses seems like the perfect solution as it shows you the current server and also allows you to select another one with a single click. I would even suggest merging the filtering and server tree feature into this dropdown as opposed to having a separate window for it in KDB Studio.

About having a different server for each tab vs sharing it globally... since KDB Studio can't have multiple files open, this is an open question. Maybe the dropdown could have an additional "select this server for all tabs" option.