MCPcopy Index your code
hub / github.com/MangoTzara/rfz

github.com/MangoTzara/rfz @0.0.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.7 ↗ · + Follow
46 symbols 83 edges 8 files 15 documented · 33%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rfz

Kinda fzf but in Rust using the Nucleo crate and other tomfooleries

QA

Why it's better than using fzf?

Simple, Nucleo is way faster than fzf and skim (at least on my machine, will provide benches as soon as possible).

All my homies hate find

So we use jwalk to parallelize the search of the possible paths and cut the wait time (more time to touch grass)

Now with 100% of stdin more

We implemented a fast way to get stdin

Why there isn't "insert stuff here" that fzf/skim/two_percent has?

There are 2 good reason: 1) They are actually good developer (we are not) and have years of experience 2) K.I.S.S.

Options:

  • -f, --file <PATH>: Search files from the given PATH.
  • -d, --directory <PATH>: Search directories from the given PATH.
  • -w, --working-dir <PATH>: Search directories and files from the given PATH.
  • -h, --help: Print help.
  • -V, --version: Print version.

Example Usage:

  • File mode

rfz-filemode-2024-03-11_16 47 55

  • Directory mode

rfz-directorymode-2024-03-11_16 51 04

rmenu

Uses rfz as a dmenu_run alternative

rmenu-2024-03-10_20 05 46

Default mappings (could change soon)

Default key mappings are as follows:

Mappings Description
Ctrl+H, Backspace Delete one character before cursor
Ctrl+D, Delete Delete one character next to cursor
Ctrl+M, Enter Insert newline
Ctrl+K Delete from cursor until the end of line
Ctrl+J Delete from cursor until the head of line
Ctrl+W, Alt+H, Alt+Backspace Delete one word before cursor
Alt+D, Alt+Delete Delete one word next to cursor
Ctrl+U Undo
Ctrl+R Redo
Ctrl+C, Copy Copy selected text
Ctrl+X, Cut Cut selected text
Ctrl+Y, Paste Paste yanked text
Ctrl+F, Move cursor forward by one character
Ctrl+B, Move cursor backward by one character
Ctrl+P, Move cursor up by one line
Ctrl+N, Move cursor down by one line
Alt+F, Ctrl+→ Move cursor forward by word
Atl+B, Ctrl+← Move cursor backward by word
Alt+], Alt+P, Ctrl+↑ Move cursor up by paragraph
Alt+[, Alt+N, Ctrl+↓ Move cursor down by paragraph
Ctrl+E, End, Ctrl+Alt+F, Ctrl+Alt+→ Move cursor to the end of line
Ctrl+A, Home, Ctrl+Alt+B, Ctrl+Alt+← Move cursor to the head of line
Alt+<, Ctrl+Alt+P, Ctrl+Alt+↑ Move cursor to top of lines
Alt+>, Ctrl+Alt+N, Ctrl+Alt+↓ Move cursor to bottom of lines
Ctrl+V, PageDown Scroll down by page
Alt+V, PageUp Scroll up by page

Core symbols most depended-on inside this repo

snapshot
called by 8
src/app.rs
tick
called by 5
src/app.rs
crawl_directory
called by 3
src/main.rs
selected
called by 3
src/app.rs
reparse
called by 3
src/app.rs
quit
called by 2
src/app.rs
injector
called by 2
src/app.rs
next
called by 2
src/event.rs

Shape

Method 34
Function 7
Class 4
Enum 1

Languages

Rust100%

Modules by API surface

src/app.rs20 symbols
src/search_engine.rs9 symbols
src/tui.rs6 symbols
src/main.rs4 symbols
src/event.rs4 symbols
src/ui.rs2 symbols
src/handler.rs1 symbols

For agents

$ claude mcp add rfz \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact