Atom not working with Unity


I have a small problem where whenever I open a script from Unity, Atom always opens a compleatly new window with a new untitled script instead of opening a new tab with the script I was trying to access. I have to manually find the file by looking through the folders from atom in order to open a script, but it should be possible to open it directly from unity.
Does anyone have a fix for this? please help thank you.