You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added `-o` option for ordered multiple choice selection
69
71
-**v2.1.0:**
70
72
- Added `-D` option for defining a pre-selected item in the list
71
73
-**v2.0.0:**
@@ -128,7 +130,7 @@ Here we get a simple list of branchs `git branch -a`, pipe into `ipt` and pipe t
128
130
<br />
129
131
130
132
<palign="center">
131
-
<imgalt="`git branch -a | ipt | xargs git checkout` selects a branch name from menu and that branch gets checked out by git"width="600"src="https://cdn.rawgit.com/ruyadorno/ipt/master/example/git-checkout.svg" />
133
+
<imgalt="`git branch -a | ipt | xargs git checkout` selects a branch name from menu and that branch gets checked out by git"width="600"src="https://ruyadorno.github.io/svg-demos/ipt-demos/input.svg" />
132
134
</p>
133
135
134
136
<br/>
@@ -141,20 +143,22 @@ In the following example we list all the files from the folder `ls` and pipe tha
141
143
<br />
142
144
143
145
<palign="center">
144
-
<imgalt="`ls | ipt -m | xargs rm` selects multiple items from the menu and deletes them"width="600"src="https://cdn.rawgit.com/ruyadorno/ipt/master/example/rm.svg" />
146
+
<imgalt="`ls | ipt -m | xargs rm` selects multiple items from the menu and deletes them"width="600"src="https://ruyadorno.github.io/svg-demos/ipt-demos/multiple.svg" />
145
147
</p>
146
148
147
149
<br/>
148
150
<br/>
149
151
152
+
**NOTE:** An ordered multiple choice menu is available when using the `-o` OR `--ordered` option
153
+
150
154
### Using file as input data
151
155
152
156
You can also read a file as source of input data instead of reading from the standard input, here we read from a `TODO` file and redirect the selected items to be written in a `DONE` file.
153
157
154
158
<br />
155
159
156
160
<palign="center">
157
-
<imgalt="Selects multiple lines from a file and append them to another one"width="600"src="https://cdn.rawgit.com/ruyadorno/ipt/master/example/input.svg" />
161
+
<imgalt="Selects multiple lines from a file and append them to another one"width="600"src="https://ruyadorno.github.io/svg-demos/ipt-demos/input.svg" />
158
162
</p>
159
163
160
164
<br/>
@@ -203,6 +207,7 @@ Options:
203
207
-e, --file-encoding Encoding for file <path>, defaults to utf8 [string]
204
208
-h, --help Shows this help message [boolean]
205
209
-m, --multiple Allows the selection of multiple items [boolean]
210
+
-o, --ordered Selects multiple items in order [boolean]
206
211
-M, --message Replaces interface message [string]
207
212
-p, --extract-path Returns only a valid path for each item [boolean]
208
213
-s, --separator Separator to to split input into items [string]
0 commit comments