Show More
@@ -504,9 +504,10 b' class Kernel(Configurable):' | |||||
504 |
|
504 | |||
505 | elif hist_access_type == 'search': |
|
505 | elif hist_access_type == 'search': | |
506 | n = parent['content'].get('n') |
|
506 | n = parent['content'].get('n') | |
|
507 | unique = parent['content'].get('unique', False) | |||
507 | pattern = parent['content']['pattern'] |
|
508 | pattern = parent['content']['pattern'] | |
508 |
hist = self.shell.history_manager.search( |
|
509 | hist = self.shell.history_manager.search( | |
509 | output=output, n=n) |
|
510 | pattern, raw=raw, output=output, n=n, unique=unique) | |
510 |
|
511 | |||
511 | else: |
|
512 | else: | |
512 | hist = [] |
|
513 | hist = [] |
@@ -633,9 +633,16 b' Message type: ``history_request``::' | |||||
633 | # If hist_access_type is 'search', get cells matching the specified glob |
|
633 | # If hist_access_type is 'search', get cells matching the specified glob | |
634 | # pattern (with * and ? as wildcards). |
|
634 | # pattern (with * and ? as wildcards). | |
635 | 'pattern' : str, |
|
635 | 'pattern' : str, | |
|
636 | ||||
|
637 | # If hist_access_type is 'search' and unique is true, do not | |||
|
638 | # include duplicated history. Default is false. | |||
|
639 | 'unique' : bool, | |||
636 |
|
640 | |||
637 | } |
|
641 | } | |
638 |
|
642 | |||
|
643 | .. versionadded:: 4.0 | |||
|
644 | The key ``unique`` for ``history_request``. | |||
|
645 | ||||
639 | Message type: ``history_reply``:: |
|
646 | Message type: ``history_reply``:: | |
640 |
|
647 | |||
641 | content = { |
|
648 | content = { |
General Comments 0
You need to be logged in to leave comments.
Login now