82 |
82 |
---
|
83 |
83 |
* With no parameters : pick all commands in history records
|
84 |
84 |
* With:
|
85 |
|
1. <order-id> : pick the <order-id>th command
|
86 |
|
2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
87 |
|
[<order-id-1> - <order-id-2>]
|
88 |
|
- the above can be mixed and repeated freely, separated by spaces
|
89 |
|
e.g. pick 2 4-7 -3
|
90 |
|
- Use negative integers to count from the end of the list, e.g.:
|
91 |
|
-2 means : the command before the last one
|
92 |
|
-2-5 means : last 2 commands + the first 5
|
93 |
|
-5--2 means : the last 5 commands except the last 2
|
|
85 |
. 1. <order-id> : pick the <order-id>th command
|
|
86 |
. 2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
|
87 |
. [<order-id-1> - <order-id-2>]
|
|
88 |
. - the above can be mixed and repeated freely, separated by spaces
|
|
89 |
. e.g. pick 2 4-7 -3
|
|
90 |
. - Use negative integers to count from the end of the list, e.g.:
|
|
91 |
. -2 means : the command before the last one
|
|
92 |
. -2-5 means : last 2 commands + the first 5
|
|
93 |
. -5--2 means : the last 5 commands except the last 2
|
94 |
94 |
"""
|
95 |
95 |
|
96 |
96 |
def __init__(self, arguments={}):
|
... | ... | |
136 |
136 |
class history_run(_init_history):
|
137 |
137 |
"""Run previously executed command(s)
|
138 |
138 |
Use with:
|
139 |
|
1. <order-id> : pick the <order-id>th command
|
140 |
|
2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
141 |
|
[<order-id-1> - <order-id-2>]
|
142 |
|
- Use negative integers to count from the end of the list, e.g.:
|
143 |
|
-2 means : the command before the last one
|
144 |
|
-2-5 means : last 2 commands + the first 5
|
145 |
|
-5--2 mean
|
146 |
|
- to find order ids for commands try /history show.
|
|
139 |
. 1. <order-id> : pick the <order-id>th command
|
|
140 |
. 2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
|
141 |
. [<order-id-1> - <order-id-2>]
|
|
142 |
. - Use negative integers to count from the end of the list, e.g.:
|
|
143 |
. -2 means : the command before the last one
|
|
144 |
. -2-5 means : last 2 commands + the first 5
|
|
145 |
. -5--2 mean
|
|
146 |
. - to find order ids for commands try /history show.
|
147 |
147 |
"""
|
148 |
148 |
|
149 |
149 |
_cmd_tree = None
|