https://github.com/rocktakey/ivy-migemo
Use migemo on ivy in Emacs.
https://github.com/rocktakey/ivy-migemo
counsel emacs emacs-configuration ivy migemo swiper
Last synced: 5 months ago
JSON representation
Use migemo on ivy in Emacs.
- Host: GitHub
- URL: https://github.com/rocktakey/ivy-migemo
- Owner: ROCKTAKEY
- License: gpl-3.0
- Created: 2020-12-06T13:57:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-21T19:34:41.000Z (over 2 years ago)
- Last Synced: 2025-01-13T06:21:31.085Z (5 months ago)
- Topics: counsel, emacs, emacs-configuration, ivy, migemo, swiper
- Language: Emacs Lisp
- Homepage:
- Size: 72.3 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[[https://github.com/ROCKTAKEY/ivy-migemo][https://img.shields.io/github/tag/ROCKTAKEY/ivy-migemo.svg?style=flat-square]]
[[file:LICENSE][https://img.shields.io/github/license/ROCKTAKEY/ivy-migemo.svg?style=flat-square]]
[[https://github.com/ROCKTAKEY/ivy-migemo/actions][https://img.shields.io/github/actions/workflow/status/ROCKTAKEY/ivy-migemo/CI.yml.svg?style=flat-square]]
# [[https://codecov.io/gh/ROCKTAKEY/ivy-migemo?branch=master][https://img.shields.io/codecov/c/github/ROCKTAKEY/ivy-migemo/master.svg?style=flat-square]]
[[https://melpa.org/#/ivy-migemo][file:https://melpa.org/packages/ivy-migemo-badge.svg]]
* Use migemo on ivy.
* How to Use?
#+begin_src emacs-lisp :tangle yes
;; Toggle migemo and fuzzy by command.
(define-key ivy-minibuffer-map (kbd "M-f") #'ivy-migemo-toggle-fuzzy)
(define-key ivy-minibuffer-map (kbd "M-m") #'ivy-migemo-toggle-migemo);; If you want to defaultly use migemo on swiper and counsel-find-file:
(setq ivy-re-builders-alist '((t . ivy--regex-plus)
(swiper . ivy-migemo-regex-plus)
(counsel-find-file . ivy-migemo-regex-plus))
;(counsel-other-function . ivy-migemo-regex-plus)
)
;; Or you prefer fuzzy match like ido:
(setq ivy-re-builders-alist '((t . ivy--regex-fuzzy)
(swiper . ivy-migemo-regex-fuzzy)
(counsel-find-file . ivy-migemo-regex-fuzzy))
;(counsel-other-function . ivy-migemo-regex-fuzzy)
)
#+end_src
* Functions
** ~ivy-migemo-toggle-fuzzy~
Toggle fuzzy match or not on ivy. Almost same as ~ivy-toggle-fuzzy~, except
this function can also be used to toggle between ~ivy-migemo-regex-fuzzy~ and
~ivy-migemo-regex-plus~.
** ~ivy-migemo-toggle-migemo~
Toggle using migemo or not on ivy.* Handle ~search-default-mode~
When you set ~search-default-mode~ a function such as ~char-fold-to-regexp~,
~swiper~ might through error or might not work with migemo.
Then, You can turn on ~ivy-migemo-search-default-handling-mode~.
When this mode is turned on, ~swiper--re-builder~ is advised to set
~search-default-mode~ ~nil~ with ~ivy-migemo~ on.* License
This package is licensed by GPLv3. See [[file:LICENSE][LICENSE]].