achiurizo / consular

Terminal automation
http://rdoc.info/github/achiu/consular/master/file/README.md
MIT License
813 stars 46 forks source link

Add window and tab settings #31

Closed kulesa closed 14 years ago

kulesa commented 14 years ago

Hi! I added a couple of features. First, DSL syntax extended to allow window and tab settings, for example

window :bounds => [50, 301, 1035, 777] do
  tab :settings => "Ocean", :selected => true do
    run "ls"
  end

  tab "my green tab", :settings => "Grass" do
  end
end

Currently supported options: :bounds, :miniaturized and :visible for a window, and :settings, :selected, :miniaturized, :visible for a tab.

And second, settings of currenlty opened terminal windows and tabs can be saved to .term file so you don't need to add settings manually. To do this, run

terminitor edit myproject --capture

So now I can quickly set up configuration which I used to - with ssh to remote in the green tab, mongo console in the blue tab, autotest in a separate window in the bottom of the second monitor etc. Could be useful to somebody else (though works only on Mac OS X for now).

Old DSL syntax supported as well.

achiurizo commented 14 years ago

hey nice patch, i've been preoccupied but i'll merge this in as soon as i get the chance.

achiurizo commented 14 years ago

could you rebase with the latest? thanks!

kulesa commented 14 years ago

OK, I'll just create another branch rebased against master with all my commits squashed into a single one.