Skip to content

additional set of buffers in consult-buffer-sources #960

Answered by minad
TitusMu asked this question in Q&A
Discussion options

You must be logged in to vote

You missed the :state field, which defines preview and the action. Without the :state (or alternatively :action) field consult--multi does not know how to act on the selected candidate. See consult--source-buffer and consult--source-recent-file for comparison.

    (setq consult-buffer-sources
          '(consult--source-hidden-buffer 
            consult--source-modified-buffer
            consult--source-buffer
            (:name     "Ephemeral"
             :narrow   ?m
             :category buffer
             :state    consult--buffer-state
             :items
             ("*Messages*"
              "*scratch*"
              "*Async-native-compile-log*"
              "*Bookmark List*"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TitusMu
Comment options

Answer selected by minad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #959 on February 26, 2024 17:06.