Add example files
This commit is contained in:
parent
2caa6c2375
commit
d023edf475
@ -98,6 +98,8 @@ Every window must define an array of splits that will be created within it. A ve
|
|||||||
|
|
||||||
## Layout examples
|
## Layout examples
|
||||||
|
|
||||||
|
See more example files in the `examples` directory.
|
||||||
|
|
||||||
### Simple two splits window
|
### Simple two splits window
|
||||||
|
|
||||||
#### Content of `~/.teamocil/sample-1.yml`
|
#### Content of `~/.teamocil/sample-1.yml`
|
||||||
|
12
examples/simple-four-splits.yml
Normal file
12
examples/simple-four-splits.yml
Normal 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
|
12
examples/simple-one-and-three-splits.yml
Normal file
12
examples/simple-one-and-three-splits.yml
Normal 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
|
18
examples/simple-six-splits.yml
Normal file
18
examples/simple-six-splits.yml
Normal 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
|
6
examples/simple-two-horitonzal-splits.yml
Normal file
6
examples/simple-two-horitonzal-splits.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
windows:
|
||||||
|
- name: simple-two-horizontal-splits
|
||||||
|
splits:
|
||||||
|
- cmd: "echo 'first split'"
|
||||||
|
- cmd: "echo 'second split'"
|
||||||
|
height: 50
|
6
examples/simple-two-vertical-splits.yml
Normal file
6
examples/simple-two-vertical-splits.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
windows:
|
||||||
|
- name: simple-two-vertical-splits
|
||||||
|
splits:
|
||||||
|
- cmd: "echo 'first split'"
|
||||||
|
- cmd: "echo 'second split'"
|
||||||
|
width: 50
|
@ -1,5 +1,5 @@
|
|||||||
module Teamocil
|
module Teamocil
|
||||||
VERSION = '0.1.10'
|
VERSION = "0.1.10"
|
||||||
autoload :Layout, "teamocil/layout"
|
autoload :Layout, "teamocil/layout"
|
||||||
autoload :CLI, "teamocil/cli"
|
autoload :CLI, "teamocil/cli"
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
$:.push File.expand_path("../lib", __FILE__)
|
||||||
|
require "teamocil"
|
||||||
|
|
||||||
spec = Gem::Specification.new do |s|
|
spec = Gem::Specification.new do |s|
|
||||||
s.name = "teamocil"
|
s.name = "teamocil"
|
||||||
s.version = "0.1.10"
|
s.version = Teamocil::VERSION
|
||||||
s.platform = Gem::Platform::RUBY
|
s.platform = Gem::Platform::RUBY
|
||||||
s.authors = "Rémi Prévost"
|
s.authors = "Rémi Prévost"
|
||||||
s.email = "remi@exomel.com"
|
s.email = "remi@exomel.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user