-
Notifications
You must be signed in to change notification settings - Fork 25
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
Selectrum M-x doesn't prioritize exact match #75
Comments
Can I see a slightly larger screenshot? Based on the results, it really seems like you've typed The relevant customization would be Which seems as intended. I think it's unlikely that this is related to #62, because at present it is the completion framework (Ivy or Selectrum) rather than |
Ah! Yes, you haven't typed The reason I implemented it like this is because there are situations when you might want to use Do you think there is an enhancement to be made? I could make it so you could disable usage-based sorting, but that doesn't seem particularly useful to me. |
Is it possible to sort candidates that are fully matched before recent candidates that are not fully matched? For example, |
Hm. I suppose we can determine "fully matched" by seeing if the regexp match includes the entire text of the candidate. I think I would personally prefer the current behavior, because it's simpler, but I wouldn't be opposed to adding an option to implement what you are describing, where candidates are sorted by
|
To the best of my knowledge, I've NEVER used Example: plain |
To be clear, is Prescient not working for any completion commands (e.g., |
The following are my Straight lines; does all look in order?
…--8<---------------cut here---------------start------------->8---
(use-package prescient
:custom
(prescient-history-length 1000)
(prescient-frequency-decay 0.997)
(prescient-frequency-threshold 0.05)
(prescient-sort-length-enable nil)
;(prescient-save-file "~/emacs/.emacs.d/var/prescient-save.el")
(prescient-filter-method '(literal prefix regexp initialism))
:config
(prescient-persist-mode t))
(use-package selectrum-prescient
:config
(selectrum-prescient-mode +1))
--8<---------------cut here---------------end--------------->8---
|
Also, I note that I had these lines off since our last message and, upon re-evaluating them now, things are temporarily working as expected (ie M-x shows my most recent command, which is also the one I searched for in describe-function). )
|
I don't think that there's anything wrong with those settings, as far as I understand This is how I'm doing it: (use-package selectrum
:init (selectrum-mode 1))
(use-package prescient
:config
(prescient-persist-mode 1))
(use-package selectrum-prescient
:demand t
:after selectrum
:config (selectrum-prescient-mode 1)) |
I deleted the file and re-enabled everything and, for the moment, things are working beautifully, with all the help I want everywhere! Is there a chance that things get corrupted by git, or by multiple sessions trying to use the same prescient file, or some such thing? |
Explanation about multiple sessons: as an EXWM user, I sometimes run emacs-in-emacs, so that both the host file and the sub-process would both be using prescient. I don't know if this causes issues, but I understand how it might depending on how the code is written. Are the errors I reported consistent with a broken/missing prescient file? |
I believe the real culprit is #84 . |
Yeah, sounds like it. Will follow up there. |
Probably related to #62 . It is annoyingly difficult to select the item I'm looking for; pictured is an example where I have typed "eval-buffer".
Here are the settings I'm using; is this user error?
The text was updated successfully, but these errors were encountered: