You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
55
85
## Development
56
86
57
87
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