Update readme and reset defaults

This commit is contained in:
erroneousboat 2017-12-22 13:48:36 +01:00
parent e8cae33f17
commit 40999f9999
3 changed files with 59 additions and 36 deletions

View File

@ -11,7 +11,7 @@ Installation
#### Binary installation
[Download](https://github.com/erroneousboat/slack-term/releases) a
compatible binary for your system. For convenience place `slack-term` in a
compatible binary for your system. For convenience, place `slack-term` in a
directory where you can access it from the command line. Usually this is
`/usr/local/bin`.
@ -41,9 +41,6 @@ Setup
{
"slack_token": "yourslacktokenhere",
// OPTIONAL: add the following to use light theme, default is dark
"theme": "light",
// OPTIONAL: set the width of the sidebar (between 1 and 11), default is 1
"sidebar_width": 3,
@ -61,6 +58,8 @@ Setup
"<next>": "chat-down",
"C-f": "chat-down",
"C-d": "chat-down",
"n": "channel-search-next",
"N": "channel-search-previous",
"q": "quit",
"<f1>": "help"
},
@ -84,6 +83,28 @@ Setup
"<delete>": "delete",
"<space>": "space"
}
},
// OPTIONAL: override the default theme, defaults are:
"theme": {
"view": {
"fg": "white",
"bg": "default",
"border_fg": "white",
"border_bg": "white",
"par_fg": "white",
"par_label_fg": "white"
},
"channel": {
"prefix": "",
"icon": "",
"text": ""
},
"message": {
"time": "",
"name": "",
"text": ""
}
}
}
```
@ -126,6 +147,8 @@ in your `slack-term.json` file.
| command | `pg-down` | scroll chat pane down |
| command | `ctrl-f` | scroll chat pane down |
| command | `ctrl-d` | scroll chat pane down |
| command | `n` | next search match |
| command | `N` | previous search match |
| command | `q` | quit |
| command | `f1` | help |
| insert | `left` | move input cursor left |

View File

@ -108,13 +108,13 @@ func getDefaultConfig() Config {
ParLabelFg: "white",
},
Channel: Channel{
Prefix: "fg-red,fg-bold",
Icon: "fg-green,fg-bold",
Text: "fg-blue,fg-bold",
Prefix: "",
Icon: "",
Text: "",
},
Message: Message{
Time: "fg-red,fg-bold",
Name: "fg-blue,fg-bold",
Time: "",
Name: "",
Text: "",
},
},

View File

@ -16,7 +16,7 @@ import (
)
const (
VERSION = "v0.2.4"
VERSION = "v0.3.0"
USAGE = `NAME:
slack-term - slack client for your terminal