-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,65 @@ | ||
# twg | ||
|
||
twg is twitter client for cli that written by golang. | ||
twg is twitter client for cli, written by golang. | ||
|
||
## Usage | ||
## Install | ||
|
||
``` | ||
$ go get https://github.com/waka/twg | ||
$ twg | ||
$ go get -u https://github.com/waka/twg-go | ||
``` | ||
|
||
Homebrew | ||
## Start options | ||
|
||
``` | ||
$ brew install twg | ||
$ twg -h | ||
Usage: | ||
twg [OPTIONS] | ||
Application Options: | ||
-m, --mode= you can select timeline(default) or mentions or list:slug | ||
-t, --tweet= update your status, and finish | ||
-r, --reload do auto reload by 2 minutes | ||
-v, --version | ||
Help Options: | ||
-h, --help Show this help message | ||
``` | ||
|
||
## Key binds | ||
|
||
`hjkl` - left/down/up/right | ||
`r` - refresh | ||
| Key | Action | | ||
|:-----------|:--------------| | ||
| ctrl + q | Quit app | | ||
| ctrl + r | Reload tweets | | ||
| up or k | Up cursor | | ||
| down or j | Up cursor | | ||
| : | Command mode | | ||
| ctrl + c | Normal mode | | ||
|
||
## Build in local machine | ||
## Command mode | ||
|
||
- `:tl` - show home timeline | ||
- `:mentions` - show mentions tweets | ||
- `:list {slug}` - show list timeline | ||
- `:tweet {text}` - post tweet | ||
- `:reply {text}` - reply to selected tweet | ||
- `:fav` - fav to selected tweet | ||
- `:rt` - retweet to selected tweet | ||
|
||
## Reset access token | ||
|
||
resolve dependencies using [dep](https://github.com/golang/dep). | ||
Remove configuration file. | ||
|
||
``` | ||
$ make deps | ||
$ rm ~/.twg | ||
``` | ||
|
||
build and run. | ||
## Build in local machine | ||
|
||
twg use [dep](https://github.com/golang/dep) to resolve dependencies. | ||
|
||
``` | ||
$ make deps | ||
$ make | ||
$ bin/twg | ||
$ ./bin/twg | ||
``` |