simple-cheatsheet

Crates.iosimple-cheatsheet
lib.rssimple-cheatsheet
version0.2.0
sourcesrc
created_at2022-08-07 13:55:38.646259
updated_at2022-08-12 17:17:00.551158
descriptionSimple CLI Tool to define and display your own cheatsheets
homepage
repository
max_upload_size
id640222
size31,967
Pablo Takara (IceS2)

documentation

README

Simple Cheatsheet

Obs.: This CLI Tool is in a really early stage.

Small, Straightforward CLI Tool to interact with your own Cheatsheets o/

How to Install

Using Cargo

cargo install <TBD>

Settings

You are able to configure three different settings by using environment variables:

  • SCHEAT_CHEATSHEETS_PATH -> Path where you will store the Cheatsheets
  • SCHEAT_WIDTH -> Total Width to be used when displaying in terminal
  • SCHEAT_EDITOR -> Editor to use when editing Cheatsheets

Defaults

  • Cheatsheet Path -> $HOME/.cheatsheets
  • Width -> 80
  • Editor -> $EDITOR

How to Use

1. Define a Cheatsheet

A Cheatsheet contains Sections. A Section contains Cheats.

To define a Cheatsheet, you need to specify a yaml file with the following format:

cheatsheet.yaml

<Section Name>:
  - description: <Command Description>
    command: <Command>

Example:

nvim.yaml

Tree:
  - description: Toggle Tree
    command: <leader>nt
  - description: Add File
    command: a

2. Use the CLI

List all Cheatsheets

scheat list

Show a Cheatsheet

scheat show <CHEATSHEET>
scheat show <CHEATSHEET> -s <SECTION>

Edit a Cheatsheet

scheat edit <CHEATSHEET>

Roadmap

[X] Define own Cheatsheets in Yaml [X] List Cheatsheets [X] Display a Cheatsheet [X] Display a Section of a Cheatsheet [X] Edit a Cheatsheet [] Proper Testing :sweaty_smile: [] Decent Documentation :sweaty_smile: [] Create a new Cheatsheet [] Define own Cheatsheets in a less verbose format

Commit count: 0

cargo fmt