4

I use an asynchronous helm source (a process) to query a database and want to use helm search to restrict the matches. Currently I start helm with something like that:

 (helm :sources (helm-build-async-source "query" :candidates-process #'cc-query :candidate-transformer #'helm-cc--candidates-formatter :action '(("find file" . helm-cc--action-find-files) ("save results in buffer" . helm-cc--action-save-buffer) ("compare" . helm-cc--action-ediff-files))) :buffer "*helm async source*")) 

And cc-query is not much more than a start-process.

That works so far, however, the query is very very slow and is restarted with each pattern change. Can I avoid this restart?

Note: I use the asynchronous source, because I do not want to wait for the query to be finished.

1

1 Answer 1

3

From Helm's author:

The only way is to suspend update (C-!) at startup, it is useful for example to enter a long regexp and not be annoyed by the constant update each time you enter character. I use it also a lot when debugging.

In other words, there's no way to automatically stop updating the Helm source when the pattern is changed.

1
  • Hey thanks, that's at least something to work with. And is may be useful for other situations as well. However, I will let the question flagged unanswered for some time. Commented Feb 3, 2017 at 6:10

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.