2018-04-01 13:03:28 +02:00
|
|
|
slack-term
|
2016-09-11 17:55:19 +02:00
|
|
|
==========
|
2016-10-02 16:07:35 +02:00
|
|
|
|
2016-10-22 09:41:35 +02:00
|
|
|
A [Slack](https://slack.com) client for your terminal.
|
2016-10-02 16:07:35 +02:00
|
|
|
|
2016-10-15 23:07:24 +02:00
|
|
|
![Screenshot](/screenshot.png?raw=true)
|
2016-10-02 16:07:35 +02:00
|
|
|
|
2017-08-26 10:50:19 +02:00
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
#### Binary installation
|
|
|
|
|
|
|
|
[Download](https://github.com/erroneousboat/slack-term/releases) a
|
2017-12-22 13:48:36 +01:00
|
|
|
compatible binary for your system. For convenience, place `slack-term` in a
|
2017-08-26 10:50:19 +02:00
|
|
|
directory where you can access it from the command line. Usually this is
|
|
|
|
`/usr/local/bin`.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ mv slack-term /usr/local/bin
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Via Go
|
|
|
|
|
2018-04-14 17:48:32 +02:00
|
|
|
If you want, you can also get `slack-term` via Go:
|
2017-08-26 10:50:19 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ go get -u github.com/erroneousboat/slack-term
|
2018-04-14 17:48:32 +02:00
|
|
|
$ cd $GOPATH/src/github.com/erroneousboat/slack-term
|
|
|
|
$ go install .
|
2017-08-26 10:50:19 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Setup
|
|
|
|
-----
|
|
|
|
|
|
|
|
1. Get a slack token, click [here](https://api.slack.com/docs/oauth-test-tokens)
|
|
|
|
|
2018-04-14 17:55:47 +02:00
|
|
|
2. Create a `.slack-term` file, and place it in your home directory. Below is
|
2018-10-27 15:09:16 +02:00
|
|
|
an example of such a file. You are only required to specify a
|
|
|
|
`slack_token`. For more configuration options of the `.slack-term` file,
|
|
|
|
see the [wiki](https://github.com/erroneousboat/slack-term/wiki).
|
2017-08-26 10:50:19 +02:00
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
2018-10-27 15:09:16 +02:00
|
|
|
"slack_token": "yourslacktokenhere"
|
2017-08-26 10:50:19 +02:00
|
|
|
}
|
|
|
|
```
|
2016-10-15 23:07:24 +02:00
|
|
|
|
2017-08-26 10:50:19 +02:00
|
|
|
Usage
|
|
|
|
-----
|
2016-10-15 23:07:24 +02:00
|
|
|
|
2017-08-26 10:50:19 +02:00
|
|
|
When everything is setup correctly you can run `slack-term` with the following
|
|
|
|
command:
|
2016-10-15 23:07:24 +02:00
|
|
|
|
2017-08-26 10:50:19 +02:00
|
|
|
```bash
|
|
|
|
$ slack-term
|
|
|
|
```
|
|
|
|
|
2016-10-27 18:52:54 +02:00
|
|
|
Default Key Mapping
|
|
|
|
-------------------
|
2016-10-02 16:07:35 +02:00
|
|
|
|
2018-08-11 13:10:36 +02:00
|
|
|
Below are the default key-mappings for `slack-term`, you can change them
|
2018-10-27 15:09:16 +02:00
|
|
|
in your `.slack-term` file.
|
2017-08-26 10:50:19 +02:00
|
|
|
|
2016-10-30 14:26:12 +01:00
|
|
|
| mode | key | action |
|
|
|
|
|---------|-----------|----------------------------|
|
|
|
|
| command | `i` | insert mode |
|
2017-07-15 23:56:39 +02:00
|
|
|
| command | `/` | search mode |
|
2016-10-30 14:26:12 +01:00
|
|
|
| command | `k` | move channel cursor up |
|
|
|
|
| command | `j` | move channel cursor down |
|
|
|
|
| command | `g` | move channel cursor top |
|
|
|
|
| command | `G` | move channel cursor bottom |
|
|
|
|
| command | `pg-up` | scroll chat pane up |
|
|
|
|
| command | `ctrl-b` | scroll chat pane up |
|
|
|
|
| command | `ctrl-u` | scroll chat pane up |
|
|
|
|
| command | `pg-down` | scroll chat pane down |
|
|
|
|
| command | `ctrl-f` | scroll chat pane down |
|
|
|
|
| command | `ctrl-d` | scroll chat pane down |
|
2017-12-22 13:48:36 +01:00
|
|
|
| command | `n` | next search match |
|
|
|
|
| command | `N` | previous search match |
|
2016-10-30 14:26:12 +01:00
|
|
|
| command | `q` | quit |
|
|
|
|
| command | `f1` | help |
|
|
|
|
| insert | `left` | move input cursor left |
|
|
|
|
| insert | `right` | move input cursor right |
|
|
|
|
| insert | `enter` | send message |
|
|
|
|
| insert | `esc` | command mode |
|
2017-07-15 23:56:39 +02:00
|
|
|
| search | `esc` | command mode |
|
|
|
|
| search | `enter` | command mode |
|