[REQ] Display buffer name as a header when grepping through project? #558
Replies: 3 comments 4 replies
-
I just noticed that the buffer name is being pinned when scrolling from bottom to top. Wonder why that is not the case when going from top to bottom? |
Beta Was this translation helpful? Give feedback.
-
I don't understand this feature request. Pinning the buffer name vs. treating it as a normal line? Which buffer? Can you please explain this a bit better or create a mock-up screenshot? |
Beta Was this translation helpful? Give feedback.
-
I see. This is intentional to not waste too much title space. In Vertico there is this code: ;; Drop excess lines
(setq lines (nreverse lines))
(cl-loop for count from (length lines) above vertico-count do
(if (< curr-line (/ count 2))
(nbutlast lines)
(setq curr-line (1- curr-line) lines (cdr lines)))) In order for the title to always stick you could write: ;; Drop excess lines
(setq lines (nreverse lines))
(cl-loop for count from (length lines) above vertico-count do
(nbutlast lines)) Maybe I could improve the criterion slightly. I will experiment. |
Beta Was this translation helpful? Give feedback.
-
I don't know how to go on about implementing this, and because of this I am here asking for help.
When grepping a new project with many files located inside of it and navigating quickly, I find that pinning the buffer name for the duration of that grep being a useful feature that
consult-ripgrep
could add. Instead of treating it as a normal line, maybe having it placed as a header in thatconsult-ripgrep
buffer would be a better idea?Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions