[Question] How to integrate dogears.el as a consult-buffer source? · Issue #430 · minad/consult (original) (raw)

My Elisp-fu is distinctly lacking and I'm not really sure how to go about this. In case you've never seen/used it, here https://github.com/alphapapa/dogears.el is Dogears. It seems to automatically create bookmark-like objects for recent places in files you've been visiting/editing. Based on this project's Readme, I attempted to configure a new source for consult-buffer with the following code inside consult's use-package:config block:

(add-to-list 'consult-buffer-sources (list :name "Dogears" :category 'bookmark :items #'dogears-list) 'append)

This however simply breaks consult-buffer and shows dogears-list instead, which is a buffer. It was at this point that I realized that while I might be on the track of why it isn't working as I expect (passing a buffer instead of a list), I don't understand Elisp or how these functions work internally well enough to fix it myself.
Can this be done easily, or am I barking up the wrong tree?