Skip to content

[Question] How to integrate dogears.el as a consult-buffer source? #430

@skyler544

Description

@skyler544

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions