GithubHelp home page GithubHelp logo

hasundue / ddu-filter-zf Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 190 KB

A filter for ddu.vim featuring 'zf', a fuzzy-finder designed for file paths (currently unmaintained)

License: MIT License

TypeScript 100.00%
ddu-filter ddu-vim

ddu-filter-zf's Introduction

ddu-filter-zf

CI codecov denoland/deno ziglang/zig

Important

The maintainance of this plugin is suspended indefinitely, since the author no longer uses ddu.vim. If you are interested in taking over the project, please let the author know.

Introduction

ddu-filter-zf is a fuzzy-filter for ddu.vim, featuring zf, a fuzzy-finder designed for fuzzy-matching file paths.

Requirements

Latest stable versions are only supported unless explicitly mentioned.

Installation

A build step is required to compile libzf. In the case of dein, for example, you can specify the build command as follows:

call dein#add('hasundue/ddu-filter-zf', #{ build: 'deno task build' })

Alternatively, you can use the pre-built libzf provided in the release archives (available for Linux x86_64, Windows x86_64, and macOS x86_64). In this case, you need to specify the download command as follows:

call dein#add('hasundue/ddu-filter-zf', #{ build: 'deno task fetch' })

Configuration

ddu-filter-zf provides matcher_zf, sorter_zf, and converter_zf (highlighter) for ddu.vim. Here is an example configuration where ddu-filter-zf is used as the default filter for all the sources:

call ddu#custom#patch_global(#{
  \   sourceOptions: #{
  \     _: #{
  \       matchers: ['matcher_zf'],
  \       sorters: ['sorter_zf'],
  \       converters: ['converter_zf'],
  \     },
  \   },
  \   filterParams: #{
  \     converter_zf: #{
  \       highlight: 'Search',
  \     },
  \   },
  \ })

Parameters

converter_zf

highlight

  • Type: string (highlight group name)
  • Default: Search

The highlight group used to highlight the matched characters.

Features

Please refer to the original documentation of zf for the details of the zf-specific features.

Here are some non-trivial features of ddu-filter-zf:

  • It enables the file-path-specific features only for items with kind = 'file'. For other kind of items, it treats them as plain strings and behaves like a conventional filter.

ddu-filter-zf's People

Contributors

denopendabot[bot] avatar dependabot[bot] avatar hasundue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.