Provide which-function (= "context of the hit") as an annotation to the search hits.
Even without preview turned on, simply having the which-function in completions buffer (either as marginalia annotation or "in place" annotation) would help a lot.
See screenshot for where I imagine the which-function annotation will be displayed. I don't look at the line numbers, and I would be happy if the line numbers of the hits are elided, and which-function is displayed inside.
Recipe for annotating consult-line ( consult-grep etc) with which-function
Provide
which-function
(= "context of the hit") as an annotation to the search hits.Even without preview turned on, simply having the
which-function
in completions buffer (either asmarginalia
annotation or "in place" annotation) would help a lot.See screenshot for where I imagine the
which-function
annotation will be displayed. I don't look at the line numbers, and I would be happy if the line numbers of the hits are elided, andwhich-function
is displayed inside.Recipe for annotating
consult-line
(consult-grep
etc) withwhich-function