An open API service indexing awesome lists of open source software.

https://github.com/the-flx/flx-rs

Rewrite emacs-flx in Rust for dynamic modules [maintainer=@jcs090218]
https://github.com/the-flx/flx-rs

emacs flx fuzzy

Last synced: 4 months ago
JSON representation

Rewrite emacs-flx in Rust for dynamic modules [maintainer=@jcs090218]

Awesome Lists containing this project

README

          

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Rust Version](https://img.shields.io/badge/Rust-1.91.1+-black.svg?logo=rust)](https://rust-lang.org/)
[![Release](https://img.shields.io/github/tag/the-flx/flx-rs.svg?label=release&logo=github)](https://github.com/the-flx/flx-rs/releases/latest)
[![crates.io](https://img.shields.io/crates/v/flx-rs.svg?logo=rust)](https://crates.io/crates/flx-rs)
[![crates.io.d](https://img.shields.io/crates/d/flx-rs)](https://crates.io/crates/flx-rs)

# flx-rs
> Rewrite emacs-flx in Rust for dynamic modules

[![CI](https://github.com/the-flx/flx-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/the-flx/flx-rs/actions/workflows/ci.yml)

## 🔨 Usage

Add this to your `Cargo.toml`:

```toml
[dependencies]
flx-rs = "0.2.1"
```

This package only exposed one function `flx_rs::score` that takes only two arguments
`(str: &str, query: &str)`.

```rust
use flx_rs;

fn main() {
let result : Option = flx_rs::score("switch-to-buffer", "stb");

println!("Score: {}", result.unwrap().score); // Score: 237
}
```

See the official documentation at https://docs.rs/flx-rs/latest/flx_rs/.

## 📂 Example

- [flx-rs](https://github.com/jcs-elpa/flx-rs) - Emacs package uses this as a dynamic module

## ⚜️ License

`flx-rs` is distributed under the terms of the MIT license.

See [`LICENSE`](./LICENSE) for details.

[flx]: https://github.com/lewang/flx