Show More
@@ -1,18 +1,25 b'' | |||||
1 | History Range Glob feature |
|
1 | History Range Glob feature | |
2 | ========================== |
|
2 | ========================== | |
3 |
|
3 | |||
4 | Previously, when using ``%history`` users could specify either |
|
4 | Previously, when using ``%history``, users could specify either | |
5 | a range of sessions and lines, for example: |
|
5 | a range of sessions and lines, for example: | |
6 |
|
6 | |||
7 | ``~8/1-~6/5`` see history from the first line of 8 sessions ago, |
|
7 | .. code-block:: python | |
8 | to the fifth line of 6 sessions ago. |
|
|||
9 |
|
|
8 | ||
10 | Or users could specify ``-g <pattern>`` to glob ALL history for |
|
9 | ~8/1-~6/5 # see history from the first line of 8 sessions ago, | |
11 | the specified pattern. |
|
10 | # to the fifth line of 6 sessions ago.`` | |
12 |
|
11 | |||
13 |
|
|
12 | Or users could specify a glob pattern: | |
14 | If a user *did* specify both a range, and a glob pattern, |
|
|||
15 | then the glob pattern would be used *but the range would be ignored*. |
|
|||
16 |
|
13 | |||
17 | With this enhancment, if a user specifies both a range and a glob pattern, |
|
14 | .. code-block:: python | |
18 | the glob pattern will be applied to the specified range of history. |
|
15 | ||
|
16 | -g <pattern> # glob ALL history for the specified pattern. | |||
|
17 | ||||
|
18 | However users could *not* specify both. | |||
|
19 | ||||
|
20 | If a user *did* specify both a range and a glob pattern, | |||
|
21 | then the glob pattern would be used (globbing *all* history) *and the range would be ignored*. | |||
|
22 | ||||
|
23 | --- | |||
|
24 | ||||
|
25 | With this enhancment, if a user specifies both a range and a glob pattern, then the glob pattern will be applied to the specified range of history. |
General Comments 0
You need to be logged in to leave comments.
Login now