gisting
An interactive gist management inside the terminal that you can use to
upload content to https://gist.github.com/.
Installation
Download the binary from Github Releases and drop it in your $PATH.
Or you can just install it with Go:
go install github.com/dimfu/gisting@latest
[!IMPORTANT]
Before you start using gisting for the first time you will need to be authenticated.
You're gonna need to create your personal classic token here
And make sure to tick the gist scope.
Usage
To launch the interactive interface:
gisting
# To enable vim motion for the editor (recommended)
gisting -vm
Command Line Usage
To create a new gist you can do:
# Single file upload
gisting create a.go
# Multiple files
gisting create a.go b.go
gisting create *.go
If you'd like to create from your current clipboard content:
gisting create -P
To delete your gist:
gisting delete [GIST_ID] [FILE_NAME]
To list your uploaded and draft gists:
gisting list
You can change the TUI theme by using:
gisting -t [THEME_NAME]
For now, you are limited to changing the theme to one listed on the
Chroma Style Gallery
See gisting help for more detailed command usages.
Key Binds
| Key |
Action |
Notes |
| tab |
Navigate between panes |
— |
| ctrl+h |
Move to left pane |
— |
| ctrl+l |
Move to right pane |
— |
| a |
Create a new gist or file |
— |
| u |
Upload current gist |
Only works in Gist Pane |
| d |
Delete selected gist or file |
— |
| r |
Rename selected gist or file |
— |
| y |
Copy file content |
Only works in Files Pane |
| ? |
Toggle help menu |
— |
| ctrl+c |
Quit the application |
— |
Acknowledgements
- nap for the huge inspiration.
- gist.