Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minibuffer not scrolling through all results with consult-ripgrep #294

Closed
ashton314 opened this issue Apr 27, 2021 · 3 comments
Closed

Minibuffer not scrolling through all results with consult-ripgrep #294

ashton314 opened this issue Apr 27, 2021 · 3 comments

Comments

@ashton314
Copy link
Contributor

ashton314 commented Apr 27, 2021

Summary

consult-ripgrep is working fine; I get all the results I expect to see. There is one problem, and that is when I use the arrow keys to scroll down through the list of results, there are some results at the end of the list that I can navigate to, but do not show up in the minibuffer—it's like the cursor scrolls out under the minibuffer's window.

Screen shots

Starting out:
Screen Shot 2021-04-27 at 15 51 08

Scrolled down so that I'm on what appears to be the last result:
Screen Shot 2021-04-27 at 15 51 26

But pressing down one more time…
Screen Shot 2021-04-27 at 15 51 31

Example config

Minimum configuration to get this to manifest:

(defvar bootstrap-version)
(setq straight-repository-branch "develop")

(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(straight-use-package 'use-package)
(setq straight-use-package-by-default t)

(use-package consult
  :bind (("s-r r" . consult-ripgrep))
  :init
  (setq register-preview-delay 0
        register-preview-function #'consult-register-format)
  :config
  (autoload 'projectile-project-root "projectile")
  (setq consult-project-root-function #'projectile-project-root))

(use-package selectrum
  :config
  (selectrum-mode +1))

(use-package projectile
  :config
  (setq projectile-completion-system 'selectrum))

Version information

Emacs version: GNU Emacs 27.1 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H15)) of 2021-01-14
OS: macOS 10.15.7

I ran this from the root of my dotfiles repo, but it's manifested elsewhere, so the specific repo shouldn't be important.

@minad
Copy link
Owner

minad commented Apr 27, 2021

I can reproduce this with Selectrum but not with Vertico. I think this is a resizing bug/problem with the group headers. See radian-software/selectrum#491. Duplicate of #246.

This is not a Consult issue but an issue of the UI, therefore I am closing it here.

@minad minad closed this as completed Apr 27, 2021
@ashton314
Copy link
Contributor Author

Thanks—sorry about the dupe; didn’t know how else to describe this. I ❤️ this package so much; stay awesome!

@minad
Copy link
Owner

minad commented Apr 27, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants