radian-software / prescient.el

☄️ Simple but effective sorting and filtering for Emacs.
MIT License
603 stars 25 forks source link

not working with `describe-function` or `helpful-callable` #121

Open mooseyboots opened 2 years ago

mooseyboots commented 2 years ago

ivy-prescient isn't working for me describe-function, or helpful-callable/helpful-function, or also counsel-describe-function.

ivy-prescient-sort-commands is set to the default: (:not swiper swiper-isearch ivy-switch-buffer). i tried setting it to t also, but no change.

but my feeling is that it should work out of the box, right?

i'm on emacs 28.1, and my config looks like

(use-package prescient
  :after (ivy counsel))

(use-package ivy-prescient
  :after (ivy counsel)
  :config
  (ivy-prescient-mode)
  (prescient-persist-mode)
  (setq ivy-prescient-retain-classic-highlighting t)

installed via melpa.

if you have any suggestions as to how to work it out it would be appreciated.

raxod502 commented 2 years ago

It doesn't surprise me that this has broken; the Ivy integration hasn't been updated for several years despite upstream changes (see https://github.com/radian-software/prescient.el/issues/65). Sorry for the inconvenience.

jacksondm33 commented 1 year ago

I had the same issue and found that Ivy will disable sorting completely if there are more items (in this case, functions defined) than ivy-sort-max-size which is 30,000 by default.