From 983aace0891517be4c6bebe31d31a79a4b537a33 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 26 Aug 2013 23:49:43 +0200 Subject: [PATCH] Add history and auto-completion When using `clark-find-url' and `clark-find-url-new-buffer' a history of items is kept and completion options should appear immediately when the user starts typing. --- clark.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clark.js b/clark.js index 860537f..b23e870 100644 --- a/clark.js +++ b/clark.js @@ -47,12 +47,14 @@ function clark_url_completer () { return merge_completers(completers); } +minibuffer_auto_complete_preferences["clark"] = true; define_browser_object_class( "clark-bookmark", null, function (I, prompt) { check_buffer(I.buffer, content_buffer); var result = yield I.buffer.window.minibuffer.read( - $prompt = prompt, $completer = clark_url_completer() + $prompt = prompt, $completer = clark_url_completer(), + $history = "clark", $auto_complete = "clark" ); yield co_return(result); }