Add example files

This commit is contained in:
Rémi Prévost 2011-10-09 22:42:37 -04:00
parent 2caa6c2375
commit d023edf475
8 changed files with 62 additions and 2 deletions

View File

@ -98,6 +98,8 @@ Every window must define an array of splits that will be created within it. A ve
## Layout examples
See more example files in the `examples` directory.
### Simple two splits window
#### Content of `~/.teamocil/sample-1.yml`

View File

@ -0,0 +1,12 @@
windows:
- name: simple-four-splits
splits:
- cmd: "echo 'first split'"
- cmd: "echo 'second split'"
width: 50
- cmd: "echo 'fourth split'"
height: 50
target: bottom-right
- cmd: "echo 'third split'"
height: 50
target: bottom-left

View File

@ -0,0 +1,12 @@
windows:
- name: simple-one-and-three-splits
splits:
- cmd: "echo 'first split'"
- cmd: "echo 'second split'"
width: 50
- cmd: "echo 'third split'"
height: 66
target: bottom-right
- cmd: "echo 'fourth split'"
height: 50
target: bottom-right

View File

@ -0,0 +1,18 @@
windows:
- name: simple-six-splits
splits:
- cmd: "echo 'first split'"
- cmd: "echo 'second split'"
width: 50
- cmd: "echo 'fourth split'"
height: 66
target: bottom-right
- cmd: "echo 'third split'"
height: 66
target: bottom-left
- cmd: "echo 'sixth split'"
height: 50
target: bottom-right
- cmd: "echo 'fifth split'"
height: 50
target: bottom-left

View File

@ -0,0 +1,6 @@
windows:
- name: simple-two-horizontal-splits
splits:
- cmd: "echo 'first split'"
- cmd: "echo 'second split'"
height: 50

View File

@ -0,0 +1,6 @@
windows:
- name: simple-two-vertical-splits
splits:
- cmd: "echo 'first split'"
- cmd: "echo 'second split'"
width: 50

View File

@ -1,5 +1,5 @@
module Teamocil
VERSION = '0.1.10'
VERSION = "0.1.10"
autoload :Layout, "teamocil/layout"
autoload :CLI, "teamocil/cli"
end

View File

@ -1,6 +1,10 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "teamocil"
spec = Gem::Specification.new do |s|
s.name = "teamocil"
s.version = "0.1.10"
s.version = Teamocil::VERSION
s.platform = Gem::Platform::RUBY
s.authors = "Rémi Prévost"
s.email = "remi@exomel.com"