diff --git a/docs/source/whatsnew/pr/hist-range-glob-feature.rst b/docs/source/whatsnew/pr/hist-range-glob-feature.rst index 66bdc5e..5c38ea7 100644 --- a/docs/source/whatsnew/pr/hist-range-glob-feature.rst +++ b/docs/source/whatsnew/pr/hist-range-glob-feature.rst @@ -1,18 +1,25 @@ History Range Glob feature ========================== -Previously, when using ``%history`` users could specify either +Previously, when using ``%history``, users could specify either a range of sessions and lines, for example: -``~8/1-~6/5`` see history from the first line of 8 sessions ago, - to the fifth line of 6 sessions ago. +.. code-block:: python -Or users could specify ``-g `` to glob ALL history for -the specified pattern. + ~8/1-~6/5 # see history from the first line of 8 sessions ago, + # to the fifth line of 6 sessions ago.`` -However users could *not* specify both. -If a user *did* specify both a range, and a glob pattern, -then the glob pattern would be used *but the range would be ignored*. +Or users could specify a glob pattern: -With this enhancment, if a user specifies both a range and a glob pattern, -the glob pattern will be applied to the specified range of history. +.. code-block:: python + + -g # glob ALL history for the specified pattern. + +However users could *not* specify both. + +If a user *did* specify both a range and a glob pattern, +then the glob pattern would be used (globbing *all* history) *and the range would be ignored*. + +--- + +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.