SublimeText / CoffeeScript

Syntax highlighting and checking, commands, shortcuts, snippets, watched compilation and more.
440 stars 64 forks source link

Smarter placement of watched output #182

Closed markalfred closed 10 years ago

markalfred commented 10 years ago

In a 2x1 layout, with the left pane selected, the current functionality is perfect. With the right pane selected, output opens in the same pane as the input.

With the following Layouts, with the following Input panes selected, Output should (arguably) appear in...

Layout Input Output
1x1 Only pane New column to the right (working)
2x1 Left Right
2x1 Right Left
1x2 Top Bottom
1x2 Bottom Top
3x1 Left Middle
3x1 Middle Right
3x1 Right Middle
4x1 Left Mid-Left
4x1 Mid-Left Mid-Right
4x1 Mid-Right Right
4x1 Right Mid-Right
2x2 Top-Left Top-Right
2x2 Top-Right Top-Left
2x2 Bottom-Left Bottom-Right
2x2 Bottom-Right Bottom-Left
markalfred commented 10 years ago

Proposed code added in aponxi:master...markalfred:watched-placement — works well, but can get thrown off when using Origami, due to some of Origami's shortfallings in pane creation/numbering/etc.

@aponxi @lavrton let me know if you see any issues... I'm keeping this un-opened for now while I play around with it some more...