d5f207424b
e2e Tests / e2e (macos-latest) (push) Waiting to run
Nix CI / check (push) Waiting to run
Python CI / Python bindings (macos-latest) (push) Waiting to run
e2e Tests / e2e (windows-latest) (push) Waiting to run
Python CI / Python bindings (windows-latest) (push) Waiting to run
Build & Publish / Build Neovim aarch64-apple-darwin (push) Waiting to run
Build & Publish / Build Neovim aarch64-pc-windows-msvc (push) Waiting to run
Build & Publish / Build Neovim x86_64-apple-darwin (push) Waiting to run
Build & Publish / Build Neovim x86_64-pc-windows-msvc (push) Waiting to run
Build & Publish / Build C FFI aarch64-apple-darwin (push) Waiting to run
Build & Publish / Build C FFI aarch64-pc-windows-msvc (push) Waiting to run
Build & Publish / Build C FFI x86_64-apple-darwin (push) Waiting to run
Build & Publish / Build C FFI x86_64-pc-windows-msvc (push) Waiting to run
Build & Publish / Build MCP aarch64-apple-darwin (push) Waiting to run
Build & Publish / Build MCP aarch64-pc-windows-msvc (push) Waiting to run
Build & Publish / Build MCP x86_64-apple-darwin (push) Waiting to run
Build & Publish / Build MCP x86_64-pc-windows-msvc (push) Waiting to run
Build & Publish / Build Python wheels aarch64 (macos-latest) (push) Waiting to run
Build & Publish / Build Python wheels x86_64 (macos-latest) (push) Waiting to run
Build & Publish / Build Python wheels x86_64 (windows-latest) (push) Waiting to run
Build & Publish / Release (push) Blocked by required conditions
Build & Publish / Publish Python wheels to PyPI (push) Blocked by required conditions
Build & Publish / Publish Rust crates (push) Blocked by required conditions
Build & Publish / Publish npm packages (push) Blocked by required conditions
Rust CI / Fuzz Tests (windows-latest) (push) Waiting to run
Rust CI / Test (macos-latest) (push) Waiting to run
Rust CI / Test (windows-latest) (push) Waiting to run
Rust CI / Fuzz Tests (macos-latest) (push) Waiting to run
Python CI / Python bindings (ubuntu-latest) (push) Failing after 0s
Build & Publish / Build Neovim aarch64-linux-android (push) Failing after 0s
Build & Publish / Build Neovim aarch64-unknown-linux-gnu (push) Failing after 0s
Build & Publish / Build MCP x86_64-unknown-linux-musl (push) Failing after 1s
Build & Publish / Build Python wheels aarch64 (ubuntu-latest) (push) Failing after 0s
Build & Publish / Build Python wheels x86_64 (ubuntu-latest) (push) Failing after 1s
Build & Publish / Build Python sdist (push) Failing after 1s
Rust CI / Fuzz Tests (ubuntu-latest) (push) Failing after 1s
Rust CI / Build i686-unknown-linux-gnu (push) Failing after 0s
Rust CI / cargo clippy (push) Failing after 1s
e2e Tests / e2e (ubuntu-latest) (push) Failing after 1s
Lua CI / luacheck lint (push) Failing after 1s
Build & Publish / Build Neovim aarch64-unknown-linux-musl (push) Failing after 1s
Build & Publish / Build Neovim x86_64-unknown-linux-gnu (push) Failing after 0s
Build & Publish / Build Neovim x86_64-unknown-linux-musl (push) Failing after 1s
Build & Publish / Build C FFI aarch64-linux-android (push) Failing after 0s
Build & Publish / Build C FFI aarch64-unknown-linux-gnu (push) Failing after 0s
Build & Publish / Build C FFI aarch64-unknown-linux-musl (push) Failing after 1s
Build & Publish / Build C FFI x86_64-unknown-linux-gnu (push) Failing after 0s
Build & Publish / Build C FFI x86_64-unknown-linux-musl (push) Failing after 1s
Build & Publish / Build MCP aarch64-unknown-linux-gnu (push) Failing after 1s
Build & Publish / Build MCP aarch64-unknown-linux-musl (push) Failing after 0s
Build & Publish / Build MCP x86_64-unknown-linux-gnu (push) Failing after 1s
Spelling / Spell Check with Typos (push) Failing after 0s
Rust CI / Test (ubuntu-latest) (push) Failing after 0s
Rust CI / cargo fmt (push) Failing after 0s
Stylua / Check lua files using Stylua (push) Failing after 1s
Lua CI / lua-language-server type check (push) Failing after 12m29s
e2e Tests / e2e (alpine-musl) (push) Successful in 57m31s
59 lines
2.3 KiB
Lua
59 lines
2.3 KiB
Lua
---@class fff.fuzzy
|
|
local M = {}
|
|
|
|
-- Try to load the Rust module
|
|
local ok, rust_module = pcall(require, 'fff.rust')
|
|
if not ok then error('Failed to load fff.rust module: ' .. rust_module) end
|
|
|
|
-- export all functions from the Rust module
|
|
M.init_db = rust_module.init_db
|
|
M.destroy_frecency_db = rust_module.destroy_frecency_db
|
|
M.access = rust_module.access
|
|
M.set_provider_items = rust_module.set_provider_items
|
|
M.fuzzy = rust_module.fuzzy
|
|
M.fuzzy_matched_indices = rust_module.fuzzy_matched_indices
|
|
M.get_keyword_range = rust_module.get_keyword_range
|
|
M.guess_edit_range = rust_module.guess_edit_range
|
|
M.get_words = rust_module.get_words
|
|
M.init_file_picker = rust_module.init_file_picker
|
|
M.restart_index_in_path = rust_module.restart_index_in_path
|
|
M.scan_files = rust_module.scan_files
|
|
M.get_cached_files = rust_module.get_cached_files
|
|
M.fuzzy_search_files = rust_module.fuzzy_search_files
|
|
M.fuzzy_search_directories = rust_module.fuzzy_search_directories
|
|
M.fuzzy_search_mixed = rust_module.fuzzy_search_mixed
|
|
M.track_access = rust_module.track_access
|
|
M.get_file_access_count = rust_module.get_file_access_count
|
|
M.add_file = rust_module.add_file
|
|
M.remove_file = rust_module.remove_file
|
|
M.cancel_scan = rust_module.cancel_scan
|
|
M.get_scan_progress = rust_module.get_scan_progress
|
|
M.is_scanning = rust_module.is_scanning
|
|
M.refresh_git_status = rust_module.refresh_git_status
|
|
M.update_single_file_frecency = rust_module.update_single_file_frecency
|
|
M.stop_background_monitor = rust_module.stop_background_monitor
|
|
M.cleanup_file_picker = rust_module.cleanup_file_picker
|
|
M.init_tracing = rust_module.init_tracing
|
|
M.wait_for_initial_scan = rust_module.wait_for_initial_scan
|
|
|
|
-- Query tracking functions
|
|
M.init_query_db = rust_module.init_query_db
|
|
M.destroy_query_db = rust_module.destroy_query_db
|
|
M.track_query_completion = rust_module.track_query_completion
|
|
M.get_historical_query = rust_module.get_historical_query
|
|
M.track_grep_query = rust_module.track_grep_query
|
|
M.get_historical_grep_query = rust_module.get_historical_grep_query
|
|
|
|
-- Git functions
|
|
M.get_git_root = rust_module.get_git_root
|
|
|
|
-- Grep functions
|
|
M.live_grep = rust_module.live_grep
|
|
M.parse_grep_query = rust_module.parse_grep_query
|
|
|
|
-- Utility functions
|
|
M.health_check = rust_module.health_check
|
|
M.shorten_path = rust_module.shorten_path
|
|
|
|
return M
|