Skip to content
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

pyim-cregexp-ivy 导致 counsel-M-x 等命令不正常 #461

Open
RenWenshan opened this issue Nov 5, 2022 · 1 comment
Open

pyim-cregexp-ivy 导致 counsel-M-x 等命令不正常 #461

RenWenshan opened this issue Nov 5, 2022 · 1 comment

Comments

@RenWenshan
Copy link
Contributor

以 counsel-M-x 为例,正常情况下,M-x man 会优先匹配 man,也就是精确匹配:
ivy-normal

根据 README 里的说明,(setq ivy-re-builders-alist '((t . pyim-cregexp-ivy))) 后,变为优先匹配列表的第一项:
pyim-ivy-bug

配置(在此之前只是 require 了 use-package):

(use-package ivy :ensure t
  :bind
  (([remap execute-extended-command] . #'counsel-M-x)
   )
  :config
  (use-package swiper :ensure t
    :config
    (setq ivy-use-virtual-buffers t
          enable-recursive-minibuffers t
          )
    )
  (use-package counsel :ensure t)
  )

(use-package pyim :ensure t
  :config
  (use-package pyim-basedict :ensure t
    :config
    (pyim-basedict-enable)
    )

  (use-package pyim-cregexp-utils
    :config
    (setq ivy-re-builders-alist '((t . pyim-cregexp-ivy)))
    )

  (pyim-default-scheme 'quanpin)
  )

pyim version: 5.2.7
ivy version: 0.13.4
emacs version: GNU Emacs 29.0.50 (我记得以前用其他版本的时候也有同样的问题)

@tumashu
Copy link
Owner

tumashu commented Jan 16, 2023

原因未知 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants