minad / consult

:mag: consult.el - Consulting completing-read
GNU General Public License v3.0
1.25k stars 105 forks source link

Disabling auto-preview for `consult-project-buffer` works partially #581

Closed fredericgiquel closed 2 years ago

fredericgiquel commented 2 years ago

Problem

Disabling auto-preview for consult-project-buffer only works as expected when the command is launch inside a project.

Steps to reproduce

(unless (package-installed-p 'consult) (package-install 'consult)) (unless (package-installed-p 'vertico) (package-install 'vertico))

(require 'consult) (require 'vertico)

(vertico-mode) (setq completion-styles '(substring basic))

;; Disable auto-preview for consult-project-buffer (consult-customize consult-project-buffer :preview-key (kbd "M-."))


- Open at least 2 files from a VC repository
- `M-x consult-project-buffer` => **auto-preview is disabled as expected**
- Switch to the `*scratch*` buffer (or any buffer not linked to a project)
- `M-x consult-project-buffer`
- Choose the project used previously => **auto-preview is active for the project buffers**
minad commented 2 years ago

Thanks for the report!