有没有办法把 consult 的结果导出为一个 list?

$ emacsq.sh -P cl-lib,ivy --eval "\
(progn
  (global-set-key (kbd \"C-c r\") 'counsel-rg)
  (defun counsel-rg-search-in-result (_)
    (ivy-read \"Search in result: \"
              (cl-copy-list ivy--all-candidates)
              :action #'counsel-grep-action))
  (ivy-add-actions 'counsel-rg '((\"s\" counsel-rg-search-in-result \"Search In result\"))))" -nw

Steps:

  1. 运行上面的最小配置(:point_right:t2: emacsq.sh
  2. C-c r 开始搜索
  3. 输入关键字
  4. M-o 切换到 action 菜单界面
  5. s 执行 Search in result