simple-panes

Simplified pane management for Atom.

joslarson

1,706

6

1.2.0

MIT

GitHub

Simple Panes

This package takes a simplified approach to pane management, enabling you to move you active editor tab between existing panes, or into new panes, with a simple set of directional commands.

This replaces Atom's default behavior, which in contrast opens new views into the same tab in an existing pane, resulting in the same file being opened multiple times, and requiring you to first create a pain before duplicating the active tab into it.

Simple Panes takes the position that this behavior, while useful, should not be the default, and that when a pane does not exist in a desired direction, a new pane should be created for the active tab to be moved into.

Atoms default behavior can still be accessed from the command pallet, or reassigned through a custom keymap.

Installation

  1. In Atom, open Preferences (Settings on Windows)
  2. Go to the install section
  3. Search for simple-panes and click install.

Or...

apm install simple-panes
# then restart Atom

Usage

cmd/ctrl + k ,  arrow-key  moves the active editor tab to the nearest pane in the direction of arrow-key. If there are no existing panes in the arrow-key direction, a new pane is created to move the active editor tab to.

Note: you must press cmd/ctrl + k then release all keys before pressing the arrow-key. Holding down all three at once is mapped in atom core to switch focus between panes.

Remove Empty Panes

For this workflow to be effective be sure the Remove Empty Panes setting is checked in your core settings (in config.cson that's destroyEmptyPanes: true).

Default Keybindings

You can change these in Preferences > Keybindings.

Command Mac OS Linux/Windows
Move Active Tab Right cmd + k ,   ctrl + k ,  
Move Active Tab Left cmd + k ,   ctrl + k ,  
Move Active Tab Up cmd + k ,   ctrl + k ,  
Move Active Tab Down cmd + k ,   ctrl + k ,