From 851711a78ef1e7ac663f42f4959b95b7ea8ea243 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 16 Jun 2017 19:59:47 +0530 Subject: [PATCH] Add search args to history --- buku.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buku.py b/buku.py index 2c00bd7..c619ede 100755 --- a/buku.py +++ b/buku.py @@ -3090,6 +3090,13 @@ POSITIONAL ARGUMENTS: else: search_opted = False + # Add cmdline search options to readline history + if search_opted and args.keywords: + try: + readline.add_history(' '.join(args.keywords)) + except Exception: + pass + if search_results: oneshot = args.np to_delete = False