termup 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +75 -4
- data/lib/templates/iterm_advanced.yml +5 -5
- data/lib/templates/iterm_basic.yml +4 -4
- data/lib/termup/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Compatible with Terminal.app and iTerm 2 on Mac OS X 10.6 - 10.8 and Ruby 1.8.7
|
|
9
9
|
|
10
10
|

|
11
11
|
|
12
|
-
**iTerm 1 users
|
12
|
+
**iTerm 1 users:** Termup 2.0 and up is not compatible with iTerm 1. Install 1.3.1 by `gem install termup -v=1.3.1`
|
13
13
|
|
14
14
|
Installation
|
15
15
|
------------
|
@@ -82,7 +82,15 @@ That's equivalent to `termup start myproject`.
|
|
82
82
|
|
83
83
|
### iTerm 2 Split Pane Support ###
|
84
84
|
|
85
|
-
|
85
|
+
There are two options to deal with split panes on iTerm 2: `--iterm_basic` and `--iterm_advanced`
|
86
|
+
|
87
|
+
#### --iterm_basic
|
88
|
+
|
89
|
+
```sh
|
90
|
+
termup create myproject --iterm_basic
|
91
|
+
```
|
92
|
+
|
93
|
+
This will generate additional options in the config file:
|
86
94
|
|
87
95
|
```yaml
|
88
96
|
options:
|
@@ -91,7 +99,7 @@ options:
|
|
91
99
|
height: 2
|
92
100
|
```
|
93
101
|
|
94
|
-
The setting above
|
102
|
+
The setting above will generate four panes in the following layout.
|
95
103
|
|
96
104
|
#################
|
97
105
|
# # #
|
@@ -103,4 +111,67 @@ The setting above turns to:
|
|
103
111
|
# # #
|
104
112
|
#################
|
105
113
|
|
106
|
-
|
114
|
+
#### --iterm_advanced
|
115
|
+
|
116
|
+
```sh
|
117
|
+
termup create myproject --iterm_advanced
|
118
|
+
```
|
119
|
+
|
120
|
+
This will generate a config file in an advanced format:
|
121
|
+
|
122
|
+
```yaml
|
123
|
+
# COMMENT OF SCRIPT HERE
|
124
|
+
---
|
125
|
+
tabs:
|
126
|
+
pane1:
|
127
|
+
commands:
|
128
|
+
- echo tab1
|
129
|
+
layout:
|
130
|
+
- split_vertically
|
131
|
+
pane2:
|
132
|
+
commands:
|
133
|
+
- echo tab2
|
134
|
+
layout:
|
135
|
+
- split_horizontally
|
136
|
+
pane3:
|
137
|
+
commands:
|
138
|
+
- echo tab3
|
139
|
+
layout:
|
140
|
+
- split_horizontally
|
141
|
+
pane4:
|
142
|
+
commands:
|
143
|
+
- echo tab4
|
144
|
+
```
|
145
|
+
|
146
|
+
The setting above will generate four panes in the following layout.
|
147
|
+
|
148
|
+
#################
|
149
|
+
# # #
|
150
|
+
# # 2 #
|
151
|
+
# # #
|
152
|
+
# #########
|
153
|
+
# # #
|
154
|
+
# 1 # 3 #
|
155
|
+
# # #
|
156
|
+
# #########
|
157
|
+
# # #
|
158
|
+
# # 4 #
|
159
|
+
# # #
|
160
|
+
#################
|
161
|
+
|
162
|
+
Available layout commands are:
|
163
|
+
|
164
|
+
```ruby
|
165
|
+
new_tab
|
166
|
+
close_tab
|
167
|
+
goto_previous_tab
|
168
|
+
goto_next_tab
|
169
|
+
goto_previous_pane
|
170
|
+
goto_next_pane
|
171
|
+
split_vertically
|
172
|
+
split_horizontally
|
173
|
+
go_left
|
174
|
+
go_right
|
175
|
+
go_down
|
176
|
+
go_up
|
177
|
+
```
|
@@ -3,23 +3,23 @@
|
|
3
3
|
tabs:
|
4
4
|
pane1:
|
5
5
|
commands:
|
6
|
-
- echo
|
6
|
+
- echo pane1
|
7
7
|
layout:
|
8
8
|
- split_vertically
|
9
9
|
pane2:
|
10
10
|
commands:
|
11
|
-
- echo
|
11
|
+
- echo pane2
|
12
12
|
layout:
|
13
13
|
- split_horizontally
|
14
14
|
pane3:
|
15
15
|
commands:
|
16
|
-
- echo
|
16
|
+
- echo pane3
|
17
17
|
layout:
|
18
18
|
- split_horizontally
|
19
19
|
pane4:
|
20
|
+
commands:
|
21
|
+
- echo pane4
|
20
22
|
properties:
|
21
23
|
foreground_color: yellow
|
22
24
|
background_color: blue
|
23
25
|
transparency: 0.1
|
24
|
-
commands:
|
25
|
-
- echo tab4
|
data/lib/termup/version.rb
CHANGED