Accessing the Pane splitRight() method from init.coffee


#1

I’m a bit confused as to how to access the extended classes such as the splitRight() method in my init.coffee.

After logging the atom object to the console, I cant seem to find the method definition anywhere.How can I access this method?


#2

You first need to get the pane you’re working with, for example:

pane = atom.workspace.getActivePane()

pane.splitRight()