1 unstable release
0.2.0 | Aug 12, 2022 |
---|---|
0.1.0 |
|
#117 in #own
12KB
271 lines
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
Dependencies
~5–17MB
~175K SLoC