Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

add 2 features: "ctrl+u" and "asynchronous completion" #47

Merged
merged 3 commits into from
Sep 6, 2015

Conversation

woshilaiceshide
Copy link
Contributor

add 2 features: "ctrl+u" and "asynchronous completion".
the former one is a convinience, while the latter is needed when completion is retrieved from the server asynchronously using ajax or websocket.

This new config handles the command completion when the tab key is
pressed. It differs from `'completeHandle'`. `'completeIssuer'` will
just trigger the calculation for completion, and the result is returned
asynchronously, after which the controller's
`'showCompletion(promptText, completions)'` can be invoked with the
result. `'completeHandle'` will retrieve the result synchronously, and
show the result. If `'completeHandle'` exists, `'completeIssuer'` is
ignored. A typical usage of `'completeIssuer'` is that the completion is
retrieved from the server using ajax or WebSocket asynchronously.
chrisdone added a commit that referenced this pull request Sep 6, 2015
add 2 features: "ctrl+u" and "asynchronous completion"
@chrisdone chrisdone merged commit 4dc0a68 into chrisdone-archive:master Sep 6, 2015
@chrisdone
Copy link
Collaborator

Cool!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants