radian-software / prescient.el

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

```prescient-filter-method``` reset after calling the toggling command in minibuffer #123

Closed liushihao456 closed 2 years ago

liushihao456 commented 2 years ago

In my init file, I have

(setq-default prescient-filter-method '(literal regexp initialism fuzzy))
;; Or
(customize-set-variable 'prescient-filter-method
                          '(literal regexp initialism fuzzy))

It works fine most of the time. But sometimes I want to disable the fuzzy filter to narrow down the candidates, and I would press M-s f, and it works fine too. However, after calling M-s f, the variable prescient-filter-method gets reset to (literal regexp initialism), globally. Is this a bug? Thank you! :)

okamsn commented 2 years ago

Yes, that's a bug. I thought a destructive delq would only modify the buffer-local value of prescient-filter-method. Would you please try the change in #124 and see if that works for you?

liushihao456 commented 2 years ago

It works! That's great! Thank you! :)