{"id":15380999,"url":"https://github.com/tani/ddc-fuzzy","last_synced_at":"2025-04-09T09:05:43.777Z","repository":{"id":38446683,"uuid":"410847690","full_name":"tani/ddc-fuzzy","owner":"tani","description":"Fuzzy matcher, sorter, and conveter for ddc.vim","archived":false,"fork":false,"pushed_at":"2025-04-01T01:03:46.000Z","size":60,"stargazers_count":69,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T02:22:12.451Z","etag":null,"topics":["ddc-filter","ddc-vim","hackoberfest","hacktoberfest","hacktoberfest-accepted","hacktoberfest2022","vim"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"github":"tani"}},"created_at":"2021-09-27T10:57:49.000Z","updated_at":"2025-03-26T18:43:51.000Z","dependencies_parsed_at":"2024-05-18T07:23:12.065Z","dependency_job_id":"c17fb71c-d79c-462e-a1b4-bcbc0ef32f8e","html_url":"https://github.com/tani/ddc-fuzzy","commit_stats":{"total_commits":63,"total_committers":6,"mean_commits":10.5,"dds":"0.38095238095238093","last_synced_commit":"c31f6d26b4c786f5811c042bec27ac6ce882a82f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fddc-fuzzy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fddc-fuzzy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fddc-fuzzy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fddc-fuzzy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tani","download_url":"https://codeload.github.com/tani/ddc-fuzzy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"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","hackoberfest","hacktoberfest","hacktoberfest-accepted","hacktoberfest2022","vim"],"created_at":"2024-10-01T14:25:18.700Z","updated_at":"2025-04-09T09:05:43.756Z","avatar_url":"https://github.com/tani.png","language":"TypeScript","funding_links":["https://github.com/sponsors/tani"],"categories":[],"sub_categories":[],"readme":"# ddc-fuzzy filters\n\n## Introduction\n\nhttps://user-images.githubusercontent.com/5019902/136666268-0953a435-f331-48e6-9502-490d40b55693.mp4\n\nFuzzy matching filters for [ddc.vim](https://github.com/Shougo/ddc.vim).\n\nThe de facto standard filters,\n[match_head](https://github.com/Shougo/ddc-match_head) and\n[sorter_rank](https://github.com/Shougo/ddc-sorter_rank), behave like the other\ncompletion such as VSCode. They suggest terms containing an input as a\nsubstring. However, they omit words with a typo. It means that we cannot obtain\na suggestion word from wrd. Moreover, it is hard to select a long word with a\nshort input.\n\nOur filters fix this problem with the fuzzy filter that behaves like CtrlP.\n\n## Installation\n\nTo install our filters,\n\n```viml\nPlug 'tani/ddc-fuzzy'\n```\n\nTo use our filters,\n\n```viml\ncall ddc#custom#patch_global('ui', 'pum')\ncall ddc#custom#patch_global('sourceOptions', {\n  \\   '_': {\n  \\     'matchers': ['matcher_fuzzy'],\n  \\     'sorters': ['sorter_fuzzy'],\n  \\     'converters': ['converter_fuzzy']\n  \\   }\n  \\ })\n```\n\n## Configuration\n\n`matcher_fuzzy` filter provides an option `splitMode`. For the default mode,\n`{ 'splitMode': 'character' }`, each input character matches any characters of a\ncandidate. For example, `abc` matches `axbxc`. On the other hand, for the option\n`{'splitMode': 'word'}`, each input character matches the beginning of a word of\na candidate. For example, `abc` does not match `axbxc` but `abc` matches `a_bc`\nand `a_b_c`.\n\n```viml\ncall ddc#custom#patch_global('filterParams', {\n  \\   'matcher_fuzzy': {\n  \\     'splitMode': 'word'\n  \\   }\n  \\ })\n```\n\n`converter_fuzzy` filter provides an option `hlGroup` to change the highlight\ngroup in vim. This filter applies the highlight group to characters matched by\nthe input pattern.\n\n```viml\ncall ddc#custom#patch_global('filterParams', {\n  \\   'converter_fuzzy': {\n  \\     'hlGroup': 'SpellBad'\n  \\   }\n  \\ })\n```\n\n## Related Projects\n\n- [tani/ddc-git](https://github.com/tani/ddc-git), git commit/file/branch completion\n- [tani/ddc-oldfiles](https://github.com/tani/ddc-oldfiles), oldfiles completion\n- [tani/ddc-path](https://github.com/tani/ddc-path), path namescompletion in current working directory\n- [tani/ddc-onp](https://github.com/tani/ddc-onp), yet another fuzzy matcher with O(NP) algorithm\n\nThis work is licensed under the MIT License. Copyright \u0026copy; 2021 TANIGUCHI\nMasaya. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftani%2Fddc-fuzzy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftani%2Fddc-fuzzy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftani%2Fddc-fuzzy/lists"}