Reuse splitted pane?


#1

I’m splitting panes and assigning a new file with with:

atom.workspaceView.getActivePane().splitRight()
atom.workspace.open(fileView)
atom.workspaceView.getActivePane().splitDown()
atom.workspace.open(fileStyle)

to get a grid (big left window, small right top and right bottom view). Working fine!

When I run the script a second time I want to open the file in the existing windows but it will create a second column. How can I select to top right window? Can I give them names so I can search for them (in case the user has another split pane)?