Skip to content

Commit dd6e4f5

Browse files
committed
Dr. Doc 🚑
1 parent 49718ac commit dd6e4f5

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

‎README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Heres some things you might expect to work that don't. Plus some other things I
2727
- No automation of messages, no sending of messages through shell commands
2828
- FaceBook obviously doesn't endorse or like these kinds of apps and they're likely to break when FaceBook changes stuff in their web app
2929

30-
## Installation / Usage
30+
## Installation
3131

3232
How to get it running and how to use it
3333

@@ -52,6 +52,36 @@ Some ways to install via package managers are supported but the installed versio
5252

5353
- `https://aur.archlinux.org/packages/whatscli/`
5454

55+
## Usage
56+
57+
Most information, all commands and key bindings are availabe through the in-app help, simply type `/help` and/or `/commands`.
58+
59+
### Login
60+
61+
When starting up whatscli will immediately try to connect to the WhatsApp server to log in. Keep your phone ready to scan the appearing QR code in WhatsApp on your Phone. If you don't manage to scan the code quick enough, just restart the application. If you can not see the whole QR code, reduce the font size of your terminal or increase the window size.
62+
63+
After scanning the QR code the chats should be populated. After you have done this once whatscli will be able to log into WhatsApp automatically on start. To log out of WhapsApp completely, type `/logout`.
64+
65+
### Messaging / Commands
66+
67+
Select a chat on the left and start typing in the input field at the bottom (switch with `<Tab>`) to send messages. To issue commands the same input field is used, by default commands are prefixed with `/`. You can for example use the `/sendimage /path/to/file.jpg` command to send images, see `/help` for more commands.
68+
69+
When paths are given for commands you don't need to surround the path in quotes, even if it contains spaces. Also don't prefix spaces with backslashes (as the copy-paste function of MacOS does for example).
70+
71+
### Messages
72+
73+
When pressing `Ctrl-w` (default mapping) you enter "message selection mode" which allows swlecting a single message and performing operations on them. For example pressing `o` while a message is selected allows opening any attachments through an external application.
74+
75+
##### Image display
76+
77+
You can display images in the terminal using external programs that convert the image to UTF characters. I found that `jp2a` works well for jpeg images and is available through package managers on most systems. However the "image quality" leaves a lot to be desired. The [PIXterm](https://github.com/eliukblau/pixterm) app allows displaying true-color versions of the images which are quite recognizable already.
78+
79+
To configure the used command and its parameters edit the `show_command` parameter in `whatscli.config`, see `/help` for the config file location.
80+
81+
### Configuration
82+
83+
Most key bindings, colors and other options can be configured in the `whatscli.config` file, the `/help` command shows its location.
84+
5585
## Development
5686

5787
This app started as my first attempt at writing something in go. Some areas that are marked with `TODO` can still be improved but work mostly. If you want to contribute features or improve the code thats great, send a PR and we can discuss.

0 commit comments

Comments
 (0)