Giter VIP home page Giter VIP logo

ddc-filter_editdistance's Introduction

ddc-filter_editdistance

Ddc.vim filter which uses edit distance for matching and sorting candidates.

Required

denops.vim

https://github.com/vim-denops/denops.vim

ddc.vim

https://github.com/Shougo/ddc.vim

filters

matcher_editdistance

It removes candidates which has greater edit distance than threshold. This also sorts candidates by editdistance.

sorter_editdistance

It only sort candidates by edit distance. I recommend using only matcher_editdistance.

Configuration

params of matcher_editdistance

  • limit: (number) Candidates whose edit distance exceed this value are ignored. (default: 3)
  • diffLen: (number) If candidates' length is smaller than (users' input + params.diffLen), the candidates are ignored. (default: -1)
  • showScore: (boolean) If it is true, edit distance is shown in completion menu. (default: false)

examples

call ddc#custom#patch_global('sourceOptions', {
      \ '_': {'matchers': ['matcher_editdistance'], 'sorters': []},
      \ })

call ddc#custom#patch_global('filterParams', {
      \ 'matcher_editdistance': {'showScore': v:true, 'diffLen': 0, 'limit': 2},
      \ })

ddc-filter_editdistance's People

Contributors

matsui54 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

delphinus

ddc-filter_editdistance's Issues

Add highlight suuport

Hi! Thank you for the nice plugin. As you know, ddc with pum.vim supports custom highlights.
I would like to see what character is inserted/changed/deleted with this plugin.
Please consider adding a converter filter like ddc-fuzzy. Thanks.

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.