##// 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 raw=raw, output=output)
486 raw=raw, output=output)
487
487
488 elif hist_access_type == 'search':
488 elif hist_access_type == 'search':
489 n = parent['content']['n']
489 pattern = parent['content']['pattern']
490 pattern = parent['content']['pattern']
490 hist = self.shell.history_manager.search(pattern, raw=raw,
491 hist = self.shell.history_manager.search(pattern, raw=raw,
491 output=output)
492 output=output, n=n)
492
493
493 else:
494 else:
494 hist = []
495 hist = []
@@ -627,7 +627,7 b' Message type: ``history_request``::'
627 'start' : int,
627 'start' : int,
628 'stop' : int,
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 'n' : int,
631 'n' : int,
632
632
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
General Comments 0
You need to be logged in to leave comments. Login now