danhper / atomic-chrome-atom

Edit Chrome textareas in Atom
https://goo.gl/haazl1
MIT License
93 stars 18 forks source link

[BUG] Opens wrong window #3

Open JustinAiken opened 8 years ago

JustinAiken commented 8 years ago

Instead of opening up a new tab in my active window, it seems to pick one at random...

danhper commented 8 years ago

Thanks for reporting. It currently opens a window in the editor in which the server started, but it would indeed be better to use the last used window. I think this should be possible, I am going to check Atom API.

danhper commented 8 years ago

I looked around the Atom API but could not find any way of detecting all open instances of Atom. If there is not any way to do this with the existing Atom API, I guess we are going to need to do some IPC between Atom windows. This issue is also starting to bug me a little, so I will tackle it as soon as possible.

piccolbo commented 7 years ago

Also my I add bring atom to foreground? Or should it be a different issue?