gocheat

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 6 Imported by: 0

README ΒΆ

Design By Achno



  
 Overview 
 
    
 Theme 
 
    
 Usage 
 
    
 Installation 
 
    
 Contributions 
 
 





β–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—       β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•—     β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ•β•β–ˆβ–ˆβ•”β•β•β•
 β•šβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•—    β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   
 β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   
β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   
β•šβ•β• β•šβ•β• β•šβ•β• β•šβ•β•       β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•β•šβ•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•   β•šβ•β•   
                                                                                
                                                                              
Overview πŸ–ΌοΈ

Gocheat is a TUI app which allows you to create beautiful custom cheatsheets for your keybindings,hotkeys or shell aliases

I have hundreds of keybinds and tens of aliases that I can't remember, so I needed something that can look them up in seconds ;)


https://github.com/user-attachments/assets/cd7039de-203d-47a2-889c-a14639a5e94e


Features
  • Fuzzy filtering mispell words and still find them. You also have 2 modes, filter by keybind/description or filter by tag, check Usage section for more info.

  • Easily and quickly add and remove entries of keybindings or aliases via the TUI itself.

  • Customize theme change the colors of gocheat to the ones you prefer.

  • Lightweight

  • Vim keys

Planned features

Tabs : Tabs which allow you to create multiple cheatsheets, for example one for keybinds and one for shell aliases

Pin items: Pinned items will be shown first before all items so you dont even have to filter frequently forgotten items

Themes 🎨

Colors for the Theme can be configured in ~/.config/gocheat/config.json in "styles":{}

{
  "items": [
    {
      "title": "Minimize Window : meta + m",
      "tag": "Kwin"
    },
    {
      "title": "Maximize window : meta + up",
      "tag": "Kwin"
    },
  ],
  "styles": {
    "subtext": "#6c7086",
    "accent": "#b4befe"
  }
}

Important❗ The background color for gocheat is derived the background color of your terminal

In the coming updates the color for the filter,cursor and the arrow icon for the forms will be configurable

Usage βš™οΈ

Once you have launched the TUI you can hit ctrl+h to show the Help screen which shows you the keybinds for every screen. The tldr version of them are :

Keybinds Description Screen
ctrl+j Add an entry List
Enter Confirm an entry Form
ctrl+x Delete an entry List
/ Start filtering List
ctrl+f Toggle Filter by Tag List
esc Go back to the List screen or exit filtering -
ctrl+c Exit the app -
ctrl+k view your tags List

Notes πŸ—’οΈ: You can modify the ~/.config/gocheat/config.json directly to add,remove,edit entries

Installation πŸ“¦ Arch linux - AUR
yay -S gocheat
Build from source

πŸ”¨ Clone the repo, build the project and move it inside your $PATH

git clone https://github.com/Achno/gocheat
cd gocheat
go build
sudo cp gocheat /usr/local/bin/
gocheat

Notes πŸ—’οΈ : if you have $GOPATH setup correctly Eg. you have the following in your .zshrc / .bashrc

export GOPATH=$(go env GOPATH)
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

You can simply use go install

go install github.com/Achno/gocheat@latest
Contributions 🀝

Feel free to suggest any cool features that would improve gocheat even further by opening an issue

If you want to contribute a feature or fix a bug please open a Pull request

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
internal
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL