termup 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -8
- data/lib/termup/handler.rb +1 -1
- data/lib/termup/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -80,11 +80,12 @@ $ termup s myproject
|
|
80
80
|
|
81
81
|
That's equivalent to `termup start myproject`.
|
82
82
|
|
83
|
-
|
83
|
+
iTerm 2 Split Pane Support
|
84
|
+
--------------------------
|
84
85
|
|
85
86
|
There are two options to deal with split panes on iTerm 2: `--iterm_basic` and `--iterm_advanced`
|
86
87
|
|
87
|
-
|
88
|
+
### --iterm_basic
|
88
89
|
|
89
90
|
```sh
|
90
91
|
termup create myproject --iterm_basic
|
@@ -111,7 +112,7 @@ The setting above will generate four panes in the following layout.
|
|
111
112
|
# # #
|
112
113
|
#################
|
113
114
|
|
114
|
-
|
115
|
+
### --iterm_advanced
|
115
116
|
|
116
117
|
```sh
|
117
118
|
termup create myproject --iterm_advanced
|
@@ -125,22 +126,22 @@ This will generate a config file in an advanced format:
|
|
125
126
|
tabs:
|
126
127
|
pane1:
|
127
128
|
commands:
|
128
|
-
- echo
|
129
|
+
- echo pane1
|
129
130
|
layout:
|
130
131
|
- split_vertically
|
131
132
|
pane2:
|
132
133
|
commands:
|
133
|
-
- echo
|
134
|
+
- echo pane2
|
134
135
|
layout:
|
135
136
|
- split_horizontally
|
136
137
|
pane3:
|
137
138
|
commands:
|
138
|
-
- echo
|
139
|
+
- echo pane3
|
139
140
|
layout:
|
140
141
|
- split_horizontally
|
141
142
|
pane4:
|
142
143
|
commands:
|
143
|
-
- echo
|
144
|
+
- echo pane4
|
144
145
|
```
|
145
146
|
|
146
147
|
The setting above will generate four panes in the following layout.
|
@@ -159,7 +160,7 @@ The setting above will generate four panes in the following layout.
|
|
159
160
|
# # #
|
160
161
|
#################
|
161
162
|
|
162
|
-
Available layout commands
|
163
|
+
Available layout commands:
|
163
164
|
|
164
165
|
```ruby
|
165
166
|
new_tab
|
data/lib/termup/handler.rb
CHANGED
@@ -75,7 +75,7 @@ module Termup
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def term_like_pids
|
78
|
-
@term_like_pids ||= `ps x | grep Term`.split("\n").reject{|i| i =~ /grep/ }.map{|i| i.match(
|
78
|
+
@term_like_pids ||= `ps x | grep Term`.split("\n").reject{|i| i =~ /grep/ }.map{|i| i.match(/\d+/).to_s.to_i }
|
79
79
|
end
|
80
80
|
|
81
81
|
def layout(command)
|
data/lib/termup/version.rb
CHANGED