Coder Social home page Coder Social logo

emacsmirror / ivy-migemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rocktakey/ivy-migemo

0.0 2.0 0.0 74 KB

Use migemo on ivy

Home Page: https://github.com/ROCKTAKEY/ivy-migemo

License: GNU General Public License v3.0

Emacs Lisp 100.00%

ivy-migemo's Introduction

https://img.shields.io/github/tag/ROCKTAKEY/ivy-migemo.svg?style=flat-square https://img.shields.io/github/license/ROCKTAKEY/ivy-migemo.svg?style=flat-square https://img.shields.io/github/actions/workflow/status/ROCKTAKEY/ivy-migemo/CI.yml.svg?style=flat-square

https://melpa.org/packages/ivy-migemo-badge.svg

Use migemo on ivy.

How to Use?

;; 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)
                              )

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 LICENSE.

ivy-migemo's People

Contributors

rocktakey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.