prescient.el
prescient.el copied to clipboard
ivy-resume is broken with ivy-prescient
Hi.
ivy-resume can be used with a argument to restore a previous ivy session.
This doesn't work with ivy-prescient installed.
Steps to reproduce :
- have ivy and ivy-prescient enabled.
- register an ivy session (eg: call M-x or wathever)
- C-u ivy-resume
- ivy-prescient-sort-function: Wrong type argument: sequencep, counsel-M-x
My workaround for the time being is : (add-to-list 'ivy-sort-functions-alist (list 'ivy-resume))
oh and I have this config from doom @hlissner which already exclude ivy-resume but that's not relevant here. (setq ivy-prescient-sort-commands '(:not swiper swiper-isearch ivy-switch-buffer ivy-resume ivy--restore-session lsp-ivy-workspace-symbol counsel-grep counsel-git-grep counsel-rg counsel-ag counsel-ack counsel-fzf counsel-pt counsel-imenu counsel-yank-pop counsel-recentf counsel-buffer-or-recentf) ivy-prescient-retain-classic-highlighting t)
I suppose there is something more elegant to do but waiting advice,
Thanks, also see https://github.com/raxod502/prescient.el/issues/65