mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Merge pull request #8919 from bencolon/workspace_vertical_splits
Add top/bottom split options when opening uri in a workspace
This commit is contained in:
@@ -382,9 +382,11 @@ class Workspace extends Model
|
||||
# initially. Defaults to `0`.
|
||||
# * `initialColumn` A {Number} indicating which column to move the cursor to
|
||||
# initially. Defaults to `0`.
|
||||
# * `split` Either 'left' or 'right'. If 'left', the item will be opened in
|
||||
# leftmost pane of the current active pane's row. If 'right', the
|
||||
# item will be opened in the rightmost pane of the current active pane's row.
|
||||
# * `split` Either 'left', 'right', 'top' or 'bottom'.
|
||||
# If 'left', the item will be opened in leftmost pane of the current active pane's row.
|
||||
# If 'right', the item will be opened in the rightmost pane of the current active pane's row.
|
||||
# If 'up', the item will be opened in topmost pane of the current active pane's row.
|
||||
# If 'down', the item will be opened in the bottommost pane of the current active pane's row.
|
||||
# * `activatePane` A {Boolean} indicating whether to call {Pane::activate} on
|
||||
# containing pane. Defaults to `true`.
|
||||
# * `activateItem` A {Boolean} indicating whether to call {Pane::activateItem}
|
||||
@@ -406,6 +408,10 @@ class Workspace extends Model
|
||||
@getActivePane().findLeftmostSibling()
|
||||
when 'right'
|
||||
@getActivePane().findOrCreateRightmostSibling()
|
||||
when 'up'
|
||||
@getActivePane().findTopmostSibling()
|
||||
when 'down'
|
||||
@getActivePane().findOrCreateBottommostSibling()
|
||||
else
|
||||
@getActivePane()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user