Show More
@@ -1,18 +1,25 b'' | |||
|
1 | 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 | 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, | |
|
8 | to the fifth line of 6 sessions ago. | |
|
7 | .. code-block:: python | |
|
9 | 8 |
|
|
10 | Or users could specify ``-g <pattern>`` to glob ALL history for | |
|
11 | the specified pattern. | |
|
9 | ~8/1-~6/5 # see history from the first line of 8 sessions ago, | |
|
10 | # to the fifth line of 6 sessions ago.`` | |
|
11 | ||
|
12 | Or users could specify a glob pattern: | |
|
13 | ||
|
14 | .. code-block:: python | |
|
15 | ||
|
16 | -g <pattern> # glob ALL history for the specified pattern. | |
|
12 | 17 | |
|
13 | 18 | However users could *not* specify both. |
|
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 | 19 | |
|
17 |
|
|
|
18 | the glob pattern will be applied to the specified range of history. | |
|
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