Skip to content

How do I create an asynchronous source where the output is filtered by elisp code? #2465

Answered by matthuszagh
matthuszagh asked this question in Q&A
Discussion options

You must be logged in to vote

Most of the processing time is spent retrieving relevant JSON entries using the external tool; I'm using that external process for matching instead of helm. I then use :candidates to accept the JSON corresponding to matched results and transform it into a display and real that I want. I also use helm to perform actions on these candidates. I am currently using json-parse-string to parse the matched JSON in my candidates function. I haven't profiled that, but I think almost all of the time is spent on that external process. So, I'm optimistic that an async solution + sentinel could provide some benefit.

However, I just found the :input-idle-delay setting and this works really well, so I'm …

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@matthuszagh
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by matthuszagh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants