| 1 |
= nheko(1) |
| 2 |
:doctype: manpage |
| 3 |
:Date: 2022-01-27 |
| 4 |
:Revision: @PROJECT_VERSION@ |
| 5 |
:man source: nheko |
| 6 |
:man manual: General Commands Manual |
| 7 |
|
| 8 |
== NAME |
| 9 |
|
| 10 |
nheko - Desktop client for Matrix using Qt and C++17 |
| 11 |
|
| 12 |
== SYNOPSIS |
| 13 |
|
| 14 |
*nheko* [_OPTIONS_] |
| 15 |
|
| 16 |
== DESCRIPTION |
| 17 |
|
| 18 |
The motivation behind the project is to provide a native desktop app for Matrix |
| 19 |
that feels more like a mainstream chat app (Element, Telegram etc) and less like |
| 20 |
an IRC client. |
| 21 |
|
| 22 |
== OPTIONS |
| 23 |
|
| 24 |
*-h*, *--help*:: |
| 25 |
Displays help on commandline options. |
| 26 |
|
| 27 |
*--help-all*:: |
| 28 |
Displays help including Qt specific options. |
| 29 |
|
| 30 |
*-v*, *--version*:: |
| 31 |
Displays version information. |
| 32 |
|
| 33 |
*--debug*:: |
| 34 |
Alias for _--log-level trace_. |
| 35 |
|
| 36 |
*-l*, *--log-level* _<level>_:: |
| 37 |
Set the global log level, or a comma-separated list of _<component>=<level>_ |
| 38 |
pairs, or both. For example, to set the default log level to _warn_ but |
| 39 |
disable logging for the _ui_ component, pass _warn,ui=off_. |
| 40 |
+ |
| 41 |
levels: _trace_ _debug_ _info_ _warning_ _error_ _critical_ _off_ |
| 42 |
+ |
| 43 |
components: _crypto_ _db_ _mtx_ _net_ _qml_ _ui_ |
| 44 |
+ |
| 45 |
Log levels can also be set in the NHEKO_LOG_LEVEL environment variable, using |
| 46 |
the same syntax. It will be overridden by this command line option. |
| 47 |
|
| 48 |
*-L*, *--log-type* _<type>_:: |
| 49 |
Set the log output type. A comma-separated list is allowed. The default is _file,stderr_. |
| 50 |
+ |
| 51 |
types: _file_ _stderr_ _none_ |
| 52 |
+ |
| 53 |
The log type can also be set in the NHEKO_LOG_TYPE environment variable, |
| 54 |
which will be overridden by this command line option. |
| 55 |
|
| 56 |
*-p* _<profile>_, *--profile* _<profile>_:: |
| 57 |
Creates a unique profile, which allows you to log into several accounts at the |
| 58 |
same time and start multiple instances of nheko. Use _default_ to start with the |
| 59 |
default profile. |
| 60 |
|
| 61 |
*-C*, *--compact*:: |
| 62 |
Allows shrinking the database, since LMDB databases don't automatically shrink |
| 63 |
when data is deleted. Possibly allows some recovery on database corruption. |
| 64 |
|
| 65 |
== FAQ |
| 66 |
|
| 67 |
=== How do I add stickers and custom emojis? |
| 68 |
|
| 69 |
Stickers and custom emojis are organized in image packs. There is one user image |
| 70 |
pack that only your account has access to and there are room image packs that |
| 71 |
are accessible by everyone in the room they are defined in. You can activate a |
| 72 |
room image pack globally to use it in any room. |
| 73 |
|
| 74 |
To manage image packs in nheko, go to the room settings and enter the Sticker & |
| 75 |
Emote Settings. You will see the Private pack (your user image pack) and can |
| 76 |
edit it there. The Shortcode is a unique identifier you use to select the image |
| 77 |
with and the Body is the alternate text that is displayed on clients that don't |
| 78 |
support images (like the alt tag in HTML images). |
| 79 |
|
| 80 |
If you have the necessary permissions you can create new room packs with the |
| 81 |
button at the bottom of the image pack list. They are the same as the user pack |
| 82 |
but you can create as many as you want and everyone in the room can use them. It |
| 83 |
might be a good idea to create an extra room just for your image packs to make |
| 84 |
sharing easier. |
| 85 |
|
| 86 |
== COMPLETERS |
| 87 |
|
| 88 |
Completers spawn a popup with completion candidates when you type them in |
| 89 |
the input line. |
| 90 |
|
| 91 |
*@*:: |
| 92 |
Open username completer. |
| 93 |
|
| 94 |
*#*:: |
| 95 |
Open room completer. |
| 96 |
|
| 97 |
*:*:: |
| 98 |
Open the emoji picker. Unicode emoji are inserted directly. Custom emoji will |
| 99 |
insert the HTML code for them into the input line. You can configure custom |
| 100 |
emoji in the room settings. |
| 101 |
|
| 102 |
== KEYBOARD SHORTCUTS |
| 103 |
|
| 104 |
=== Room list |
| 105 |
|
| 106 |
*Ctrl-Up/Ctrl-Down*:: |
| 107 |
Navigate within the room list. |
| 108 |
|
| 109 |
*Ctrl-W*:: |
| 110 |
Close the currently open room. |
| 111 |
|
| 112 |
*Ctrl-K*:: |
| 113 |
Search and select rooms from the room list. |
| 114 |
|
| 115 |
*Alt-A*, *Ctrl-Shift-A*:: |
| 116 |
Select next room with activity. |
| 117 |
|
| 118 |
=== Timeline/Messaging |
| 119 |
|
| 120 |
*PgUp/PgDn*:: |
| 121 |
Scroll timeline per page. |
| 122 |
|
| 123 |
*Alt-Up/Alt-Down*:: |
| 124 |
Reply to a message. |
| 125 |
|
| 126 |
*Up/Down*:: |
| 127 |
Edit a message. |
| 128 |
|
| 129 |
*Ctrl-E*:: |
| 130 |
Edit message currently selected as reply. |
| 131 |
|
| 132 |
*Alt-F*:: |
| 133 |
Forward message currently selected as reply. |
| 134 |
|
| 135 |
*Ctrl-P/Ctrl-N*:: |
| 136 |
Reenter previous/next message. |
| 137 |
|
| 138 |
*Ctrl-U*:: |
| 139 |
Delete everything in the input line. |
| 140 |
|
| 141 |
*Ctrl-Left/Ctrl-Right*:: |
| 142 |
Jump one word left/right in the input line. |
| 143 |
|
| 144 |
*Shift-Enter*:: |
| 145 |
Insert line break. |
| 146 |
|
| 147 |
*Enter*:: |
| 148 |
Submit message. |
| 149 |
|
| 150 |
== COMMANDS |
| 151 |
|
| 152 |
Commands only work when they are used at the beginning of text. |
| 153 |
|
| 154 |
=== Custom messages |
| 155 |
|
| 156 |
*/me* _<message>_:: |
| 157 |
Send a message as an emote, where your username is prefixed. |
| 158 |
|
| 159 |
*/react* _<text>_:: |
| 160 |
Send a message as a reaction when you’re replying to a message. |
| 161 |
|
| 162 |
*/md* _<message>_:: |
| 163 |
Force Markdown when sending the current message. |
| 164 |
|
| 165 |
*/cmark* _<message>_:: |
| 166 |
Disables most of our extensions to cmark (CommonMark), including the |
| 167 |
newline-in-input = newline-in-output behaviour, strikethrough and spoilers. You |
| 168 |
may still force newlines with 2 spaces or a backslash before the line ending or |
| 169 |
insert HTML elements. |
| 170 |
|
| 171 |
*/plain* _<message>_:: |
| 172 |
Force plain text when sending the current message. |
| 173 |
|
| 174 |
*/rainbow* _<message>_:: |
| 175 |
Send a message in rainbow colors. |
| 176 |
|
| 177 |
*/rainbowme* _<message>_:: |
| 178 |
Send a message as a rainbow-colored emote, where your username is prefixed. |
| 179 |
|
| 180 |
*/notice* _<message>_:: |
| 181 |
Send a message as a notice. |
| 182 |
|
| 183 |
*/rainbownotice* _<notice>_:: |
| 184 |
Send a message as a rainbow-colored notice. |
| 185 |
|
| 186 |
=== Room management |
| 187 |
|
| 188 |
*/join* _<roomname>_ _[reason]_:: |
| 189 |
Join a room. _reason_ is optional. |
| 190 |
|
| 191 |
*/knock* _<roomname>_ _[reason]_:: |
| 192 |
Ask to join a room. _reason_ is optional. |
| 193 |
|
| 194 |
*/part*, */leave* _[reason]_:: |
| 195 |
Leave the current room. _reason_ is optional. |
| 196 |
|
| 197 |
*/invite* _<username>_ _[reason]_:: |
| 198 |
Invite a user into the current room. _reason_ is optional. |
| 199 |
|
| 200 |
*/kick* _<username>_ _[reason]_:: |
| 201 |
Kick a user from the current room. _reason_ is optional. You can alternatively kick the user you are replying to by leaving out the _username_. |
| 202 |
|
| 203 |
*/ban* _<username>_ _[reason]_:: |
| 204 |
Ban a user from the current room. _reason_ is optional. You can alternatively ban the user you are replying to by leaving out the _username_. |
| 205 |
|
| 206 |
*/unban* _<username>_ _[reason]_:: |
| 207 |
Unban a user. _reason_ is optional. You can alternatively unban the user you are replying to by leaving out the _username_. |
| 208 |
|
| 209 |
*/redact* _<username>_ _[reason]_:: |
| 210 |
Redacts all visible messages of the specified user. You will run into rate limits quickly. |
| 211 |
|
| 212 |
*/redact* _<eventid>_ _[reason]_:: |
| 213 |
Redacts a specific event. You can alternatively redact the event you are replying to by specifying neither an _eventid_ nor _username_. |
| 214 |
|
| 215 |
*/roomnick* _<roomname>_:: |
| 216 |
Change your nickname in a single room. |
| 217 |
|
| 218 |
*/glitch* _<message>_:: |
| 219 |
Applies a glitch effect to the given _message_. Beware that this will break mentions, HTML, and some Markdown in your message. |
| 220 |
|
| 221 |
*/gradualglitch* _<message>_:: |
| 222 |
Applies a progressively more severe glitch effect to the _message_. Again, this will break mentions, HTML, and some Markdown. |
| 223 |
|
| 224 |
=== Emoticons |
| 225 |
|
| 226 |
*/shrug* _[message]_:: |
| 227 |
Inserts `¯\_(ツ)_/¯` followed by an optional _message_. |
| 228 |
|
| 229 |
*/fliptable*:: |
| 230 |
Inserts `(╯°□°)╯︵ ┻━┻` |
| 231 |
|
| 232 |
*/unfliptable*:: |
| 233 |
Inserts `┯━┯╭( º _ º╭)` |
| 234 |
|
| 235 |
*/sovietflip*:: |
| 236 |
Inserts `ノ┬─┬ノ ︵ ( \\o°o)\\` |
| 237 |
|
| 238 |
=== User management |
| 239 |
|
| 240 |
*/ignore* _<username>_:: |
| 241 |
Ignore a user, invites from them are also rejected. |
| 242 |
|
| 243 |
*/unignore* _<username>_:: |
| 244 |
Stops ignoring a user. |
| 245 |
|
| 246 |
=== Invite permission management |
| 247 |
|
| 248 |
*/blockinvites* _<username>_|_<roomid>_|_<servername>_|all:: |
| 249 |
Block all invites either by default ("all") or from a specific user or server or to a specific room. |
| 250 |
|
| 251 |
*/allowinvites* _<username>_|_<roomid>_|_<servername>_|all:: |
| 252 |
Allow all invites either by default ("all") or from a specific user or server or to a specific room. |
| 253 |
|
| 254 |
=== Advanced |
| 255 |
|
| 256 |
*/clear-timeline*:: |
| 257 |
Removes all but the most recent messages from the currently rendered timeline |
| 258 |
and then refetches it from the server; can be used to fix some cache issues. |
| 259 |
|
| 260 |
*/reset-state*:: |
| 261 |
Fetches all the state events in the current room again; can be used to fix some |
| 262 |
cache issues. |
| 263 |
|
| 264 |
*/rotate-megolm-session*:: |
| 265 |
Rotates the encryption key used to send encrypted messages in a room. |
| 266 |
|
| 267 |
*/goto* _<address>_:: |
| 268 |
|
| 269 |
_address_ can be one of: |
| 270 |
|
| 271 |
_<event ID>_;; |
| 272 |
Jumps to event with the specified ID and highlights it. |
| 273 |
|
| 274 |
_<message index>_;; |
| 275 |
Jumps to the message with the specified index and highlights it. |
| 276 |
|
| 277 |
_<Matrix URI>_;; |
| 278 |
Handles Matrix URI as if you clicked on it. |
| 279 |
|
| 280 |
*/converttodm*:: |
| 281 |
Converts a room to a direct conversation. |
| 282 |
|
| 283 |
*/converttoroom*:: |
| 284 |
Converts a direct conversation to a normal room. |
| 285 |
|
| 286 |
== MARKDOWN EXTENSIONS |
| 287 |
|
| 288 |
*newline (+\n+)*:: |
| 289 |
A single newline will be turned into `<br>` instead of a space. |
| 290 |
|
| 291 |
*+~~text~~+*:: |
| 292 |
Make text strikethrough. HTML putput: `<del>text</del>` |
| 293 |
|
| 294 |
*`||spoiler warning|text||`*:: |
| 295 |
Hide text and set an optional spoiler warning. Note that Nheko does not display |
| 296 |
the spoiler warning currently. HTML output: |
| 297 |
`<span data-mx-spoiler="spoiler">text</span>` |
| 298 |
|
| 299 |
== ENVIRONMENT |
| 300 |
|
| 301 |
*NHEKO_ALLOW_QML_DISK_CACHE*:: |
| 302 |
Nheko by default disables the qml disk cache to prevent crashes. This allows |
| 303 |
you to reenable it at your own risk. |
| 304 |
|
| 305 |
== FILES |
| 306 |
|
| 307 |
*Configuration file*:: |
| 308 |
`${XDG_CONFIG_HOME:-~/.config}/nheko/nheko.conf` |
| 309 |
|
| 310 |
*Log file*:: |
| 311 |
`${XDG_CACHE_HOME:-~/.cache}/nheko/nheko/nheko.log` |
| 312 |
|
| 313 |
*Database*:: |
| 314 |
`${XDG_DATA_HOME:-~/.local/share}/nheko/nheko/*/data.mdb` |
| 315 |
|
| 316 |
*Media cache*:: |
| 317 |
`${XDG_CACHE_HOME:-~/.cache}/nheko/nheko/media_cache` |
| 318 |
|
| 319 |
|
| 320 |
== REPORTING BUGS |
| 321 |
|
| 322 |
Please report issues on our bug tracker at |
| 323 |
<https://github.com/Nheko-Reborn/nheko/issues>. |