ioquatix / script-runner

This package will run various script files inside of Atom. It currently supports JavaScript, CoffeeScript, Ruby, and Python. You can add more.
http://atom.io/packages/script-runner
Other
62 stars 23 forks source link

Choose where to create a new pane. #34

Closed NikoUY closed 7 years ago

NikoUY commented 9 years ago

It would be nice to being able to choose where the pane is created, the fact that currently splits to the right makes it really inconvinient if you already use a vertical pane like me.

Maybe also including an option to open a new tab instead of creating a new pane could be handy for some people.

ioquatix commented 9 years ago

I agree, are you able to submit a PR?

Gabriel-p commented 9 years ago

:+1: also would love to have this option.

ioquatix commented 9 years ago

How would the option work? Can you spec it out what you'd like exactly?

Gabriel-p commented 9 years ago

The Sublime package SublimeREPL implements this option like so:

{
    // Specify whether to move repls to a different Sublime Text group (frame)
    // immediately on opening. Setting this to true will simply move it to
    // the 'next' group from the one that was in focus when it was opened
    // (one down with row layout, one to the right with column and grid
    // layout). Alternatively, you can set this to the index of the group in
    // which you want all repls to be opened (index 0 being the top-left group).
    // Activating this option will NOT automatically change your layout/create
    // a new group if it isn't open.
    "open_repl_in_group": 2,
}

The panes are thus numbered starting from 0 with the default top-left pane and increasing clock-wise.

ioquatix commented 9 years ago

Can we do the same with Atom?

Gabriel-p commented 9 years ago

You mean open different panes? Sure: View / Panes

ioquatix commented 9 years ago

Right but I'm wondering if the indexing system in that comment makes sense w.r.t. how Atom deals with Panes - I'm all for a PR which implements this. While something more flexible might be the final outcome, this would be an awesome first step.

Gabriel-p commented 9 years ago

Can't help you there, I'm just the idea guy :)

Really, I'd love to help out but I can't code in CoffeScript (or Ruby, Or Java,..., only Python)

ioquatix commented 7 years ago

This is now supported in 2.0.0 release.