cratuity

Crates.iocratuity
lib.rscratuity
version0.1.5
sourcesrc
created_at2021-01-04 01:56:57.218605
updated_at2021-12-11 17:05:32.029336
descriptionA tui for searching crates.io
homepage
repositoryhttps://github.com/TheMayoras/cratuity
max_upload_size
id331336
size120,659
Ben Mayoras (TheMayoras)

documentation

README

cratuity

Crates.io GitHub last commit

A TUI for quickly searching Crates.io

The searches done are return the same results as if you entered the search term into the search bar on crates.io. The results are returned in pages of 5 results each

Cratuity demo

Requirements and Optional Features

Features

Default Features

By default, cratuity is built with both clipboard access and "open in browser" features.

To turn them off, build with --no-default-features.

Clipboard Access

To allow cratuity to copy to your clipboard, the copy feature is required. This is turned on by default.

You can copy the Cargo.toml format for a crate's most recent version by selecting the crate with J/K and then pressing C to copy the string to the clipboard. For example, selecting the serde crate and pressing C may cause something like the following to be copied to your clipboard: serde = "1.0.118"

Open in Browser

If the browser feature is turned on, cratuity can open the documentation link for a crate in your system's default browser.

Requirements

Clipboard Access

To have access to the clipboard on Linux xorg-dev must be installed

Usage

When prompted for an input, press ESC to cancel the input or Enter to search for what was entered.

When scrolling through history, press N to move a page down and P to move a page up. Press q to quit from the search screen.

When scrolling through the pages, you can change you search term at any time by pressing f, or you can change the sorting method by pressing S.

Sorting

The 5 sorting methods are the exact same sorting methods that you can use to search for crates on Crates.io. These are

  1. Relevancy
  2. All Time Downloaded
  3. Recently Downloaded
  4. Recently Updated
  5. Newly Added

Please submit any issues for feature requests to the github repository!

Commit count: 49

cargo fmt