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.
This commit is contained in:
Tom Willemse 2013-08-26 23:49:43 +02:00
parent 19e80308ef
commit 983aace089

View file

@ -47,12 +47,14 @@ function clark_url_completer () {
return merge_completers(completers); return merge_completers(completers);
} }
minibuffer_auto_complete_preferences["clark"] = true;
define_browser_object_class( define_browser_object_class(
"clark-bookmark", null, "clark-bookmark", null,
function (I, prompt) { function (I, prompt) {
check_buffer(I.buffer, content_buffer); check_buffer(I.buffer, content_buffer);
var result = yield I.buffer.window.minibuffer.read( 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); yield co_return(result);
} }