##// END OF EJS Templates
Add the new search option `n` to the messaging protocol
Takafumi Arakaki -
Show More
@@ -486,9 +486,10 b' class Kernel(Configurable):'
486 486 raw=raw, output=output)
487 487
488 488 elif hist_access_type == 'search':
489 n = parent['content']['n']
489 490 pattern = parent['content']['pattern']
490 491 hist = self.shell.history_manager.search(pattern, raw=raw,
491 output=output)
492 output=output, n=n)
492 493
493 494 else:
494 495 hist = []
@@ -627,7 +627,7 b' Message type: ``history_request``::'
627 627 'start' : int,
628 628 'stop' : int,
629 629
630 # If hist_access_type is 'tail', get the last n cells.
630 # If hist_access_type is 'tail' or 'search', get the last n cells.
631 631 'n' : int,
632 632
633 633 # If hist_access_type is 'search', get cells matching the specified glob
General Comments 0
You need to be logged in to leave comments. Login now