     srcPane.activateItem(dstItem)
   srcPane.activate()
 
-moveAllPaneItems = (srcPane, dstPane) ->
-  activeItem = srcPane.getActiveItem() # remember ActiveItem
-  srcPane.moveItemToPane(item, dstPane, i) for item, i in srcPane.getItems()
-  dstPane.activateItem(activeItem)
-
 reparent = (paneAxis) ->
   debug("reparent")
   parent = paneAxis.getParent()

    if i is 0
      parent.replaceChild(paneAxis, child)
    else
      parent.insertChildAfter(anchorChild, child)
    anchorChild = child
  paneAxis.destroy()

getAllPaneAxis = (paneAxis, results=[]) ->


  moveToVery: (direction) ->
    return if atom.workspace.getPanes().length < 2
    pane = getActivePane()
    container = pane.getContainer()
    root = container.getRoot()
    orientation = if direction in ['top', 'bottom'] then 'vertical' else 'horizontal'

    # If there is multiple pane in window, root is always instance of PaneAxis
    PaneAxis ?= root.constructor
    parent = pane.getParent()
    if root.getOrientation() isnt orientation
      container.setRoot(root = new PaneAxis({container, orientation, children: [root]}))
      parent.removeChild(pane)
    else
      parent.removeChild(pane, true)

    switch direction
      when 'top', 'left' then root.addChild(pane, 0)
      when 'right', 'bottom' then root.addChild(pane)

    for axis in getAllPaneAxis(root)
      if axis.getOrientation() is axis.getParent().getOrientation()
        reparent(axis)

    pane.activate()
