Crates.io | cnav |
lib.rs | cnav |
version | 0.2.1 |
created_at | 2025-09-11 10:01:47.093134+00 |
updated_at | 2025-09-18 15:42:13.218185+00 |
description | A fast code navigation tool powered by ripgrep for quickly finding and jumping to symbols in your codebase |
homepage | https://github.com/agace/cnav |
repository | https://github.com/agace/cnav |
max_upload_size | |
id | 1833607 |
size | 24,307 |
cnav (Code NAVigator) is a fast, terminal-based code navigation tool powered by ripgrep. It helps you quickly jump to functions, variables, or any symbol in your project, directly inside your favorite terminal editor.
From Crates.io
cargo install cnav
From source
git clone https://github.com/agace/cnav
cd cnav
cargo install --path .
cnav [OPTION] <path> <symbol>
-n, --no-interactive
: Open the first match directly without interactive selection-t, --tmux
: Open the file in a new tmux split (when inside tmux)-e, --editor <EDITOR>
: Specify the terminal editor to use-h, --help
: Show help information-V, --version
: Show version informationcnav /path/to/project main
cnav -n src/utils calculate
cnav -t -e nvim . my_function
Editor | Line Jump Syntax |
---|---|
vim, nvim | vim +42 file.txt |
nano | nano +42 file.txt |
emacs | emacs +42 file.txt |
micro | micro file.txt:+42 |
helix (hx) | hx file.txt:42 |
kakoune (kak) | kak +42 file.txt |
joe | joe +42 file.txt |
Other editors still open, but may not support direct line jumps.
Set your preferred editor using the EDITOR environment variable:
export EDITOR="nvim"
This project is licensed under the MIT License. See the LICENSE file for details.