非同期helmソース(プロセス)を使用してデータベースにクエリを行い、helm検索を使用して一致を制限したいとします。
現在、私はそのようなもので舵を始める:
(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*"))
また、 cc-query
は start-process
にすぎません。
これまでのところ動作しますが、クエリは非常に遅く、パターンの変更ごとに再起動されます。この再起動を避けることはできますか?
注:私はクエリが終了するのを待つ必要はないので、非同期ソースを使用します。