#navigation #shortcut #links #cargo #crates #navigate #jump

app cargo-nav

Navigate directly to crate links from your terminal

11 releases (3 stable)

1.2.0 Mar 14, 2023
1.1.0 Jan 6, 2021
1.0.0 Jun 27, 2020
0.2.3 Jun 26, 2020
0.1.3 Jun 22, 2020

#291 in Cargo plugins

Download history

61 downloads per month

MIT/Apache

20KB
244 lines

cargo-nav

CI Crates.io License

Navigate directly to crate links from your terminal.

Inspired by njt.

Installing

cargo install cargo-nav

Using

Get usage information with cargo nav --help

Call via cargo nav <crate_name> to jump to the homepage of that crate as listed on crates.io. You can specify an additional argument to jump to the [r]epository, [d]ocumentation, or [c]rate pages.

cargo nav serde
cargo nav serde c
cargo nav serde crate
cargo nav serde h
cargo nav serde homepage
cargo nav serde r
cargo nav serde repository
cargo nav serde d
cargo nav serde documentation

The short arguments 'c', 'h', 'r', and 'd' are available as less typing to get to their respective links. Going to the crate's homepage is the default behavior.

Developing

Building

Requirements

  • Git
  • A recent version of Rust

Steps

git clone https://github.com/Celeo/cargo-nav
cd cargo-nav
cargo build

License

Licensed under either of

Contributing

Please feel free to contribute. Please open an issue first (or comment on an existing one) so that I know that you want to add/change something.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~6–18MB
~259K SLoC