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:
parent
19e80308ef
commit
983aace089
1 changed files with 3 additions and 1 deletions
4
clark.js
4
clark.js
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue