{"id":13485059,"url":"https://github.com/matsui54/ddc-filter_editdistance","last_synced_at":"2025-03-27T17:30:47.128Z","repository":{"id":39092640,"uuid":"394995109","full_name":"matsui54/ddc-filter_editdistance","owner":"matsui54","description":"Ddc.vim filter which uses edit distance for matching and sorting candidates.","archived":false,"fork":false,"pushed_at":"2023-03-27T08:28:37.000Z","size":22,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T19:42:38.854Z","etag":null,"topics":["ddc-filter","ddc-vim"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matsui54.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-11T13:17:05.000Z","updated_at":"2024-07-01T06:09:44.000Z","dependencies_parsed_at":"2024-10-30T19:40:45.369Z","dependency_job_id":null,"html_url":"https://github.com/matsui54/ddc-filter_editdistance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsui54%2Fddc-filter_editdistance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsui54%2Fddc-filter_editdistance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsui54%2Fddc-filter_editdistance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsui54%2Fddc-filter_editdistance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsui54","download_url":"https://codeload.github.com/matsui54/ddc-filter_editdistance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245892459,"owners_count":20689506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddc-filter","ddc-vim"],"created_at":"2024-07-31T17:01:44.563Z","updated_at":"2025-03-27T17:30:46.807Z","avatar_url":"https://github.com/matsui54.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# ddc-filter_editdistance\n\nDdc.vim filter which uses edit distance for matching and sorting candidates.\n\n## Required\n\n### denops.vim\n\nhttps://github.com/vim-denops/denops.vim\n\n### ddc.vim\n\nhttps://github.com/Shougo/ddc.vim\n\n## filters\n\n### matcher_editdistance\n\nIt removes candidates which has greater edit distance than threshold. This also\nsorts candidates by editdistance.\n\n### sorter_editdistance\n\nIt only sort candidates by edit distance. I recommend using only\nmatcher_editdistance.\n\n## Configuration\n\n### params of matcher_editdistance\n\n- limit: (number) Candidates whose edit distance exceed this value are ignored.\n  (default: 3)\n- diffLen: (number) If candidates' length is smaller than (users' input +\n  params.diffLen), the candidates are ignored. (default: -1)\n- showScore: (boolean) If it is true, edit distance is shown in completion menu.\n  (default: false)\n\n### examples\n\n```vim\ncall ddc#custom#patch_global('sourceOptions', {\n      \\ '_': {'matchers': ['matcher_editdistance'], 'sorters': []},\n      \\ })\n\ncall ddc#custom#patch_global('filterParams', {\n      \\ 'matcher_editdistance': {'showScore': v:true, 'diffLen': 0, 'limit': 2},\n      \\ })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsui54%2Fddc-filter_editdistance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsui54%2Fddc-filter_editdistance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsui54%2Fddc-filter_editdistance/lists"}