Commit 7559a2483b
Unregistered key
Layout: unified · split
docs/iamb.5 +8 −71
| @@ -124,15 +124,12 @@ These options are configured as an object under the | ||
| 124 | 124 | key and can be overridden as described in |
| 125 | 125 | .Sx PROFILES . |
| 126 | 126 | .Bl -tag -width Ds |
| 127 | ||
| 128 | 127 | .It Sy external_edit_file_suffix |
| 129 | 128 | Suffix to append to temporary file names when using the :editor command. Defaults to .md. |
| 130 | ||
| 131 | 129 | .It Sy default_room |
| 132 | 130 | The room to show by default instead of the |
| 133 | 131 | .Sy :welcome |
| 134 | 132 | window. |
| 135 | ||
| 136 | 133 | .It Sy image_preview |
| 137 | 134 | Enable image previews and configure it. |
| 138 | 135 | An empty object will enable the feature with default settings, omitting it will disable the feature. |
| @@ -169,57 +166,44 @@ Possible values are: | ||
| 169 | 166 | .Dq Sy error . |
| 170 | 167 | Also supports the syntax defined by |
| 171 | 168 | .Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html |
| 172 | ||
| 173 | 169 | .It Sy max_log_files |
| 174 | 170 | Specifies how many daily log files should be saved. |
| 175 | 171 | Set this to |
| 176 | 172 | .Sy 0 |
| 177 | 173 | to disable automatically deleting log files. |
| 178 | Defaults to | |
| 174 | Defaults to | |
| 179 | 175 | .Sy 7 . |
| 180 | ||
| 181 | 176 | .It Sy mouse |
| 182 | 177 | Enable mouse support |
| 183 | 178 | See |
| 184 | 179 | .Sx MOUSE |
| 185 | 180 | for more details. |
| 186 | ||
| 187 | 181 | .It Sy message_shortcode_display |
| 188 | 182 | Defines whether or not Emoji characters in messages should be replaced by their |
| 189 | 183 | respective shortcodes. |
| 190 | ||
| 191 | 184 | .It Sy message_user_color |
| 192 | 185 | Defines whether or not the message body is colored like the username. |
| 193 | ||
| 194 | 186 | .It Sy normal_after_send |
| 195 | 187 | Defines whether to reset input to Normal mode after sending a message. |
| 196 | ||
| 197 | 188 | .It Sy notifications |
| 198 | 189 | When this subsection is present, you can enable and configure push notifications. |
| 199 | 190 | See |
| 200 | 191 | .Sx NOTIFICATIONS |
| 201 | 192 | for more details. |
| 202 | ||
| 203 | 193 | .It Sy open_command |
| 204 | 194 | Defines a custom command and its arguments to run when opening downloads instead of the default. |
| 205 | 195 | (For example, |
| 206 | 196 | .Sy ["my-open",\ "--file"] . ) |
| 207 | ||
| 208 | 197 | .It Sy reaction_display |
| 209 | 198 | Defines whether or not reactions should be shown. |
| 210 | ||
| 211 | 199 | .It Sy reaction_shortcode_display |
| 212 | 200 | Defines whether or not reactions should be shown as their respective shortcode. |
| 213 | ||
| 214 | 201 | .It Sy read_receipt_send |
| 215 | 202 | Defines whether or not read confirmations are sent. |
| 216 | ||
| 217 | 203 | .It Sy read_receipt_display |
| 218 | 204 | Defines whether or not read confirmations are displayed. |
| 219 | ||
| 220 | 205 | .It Sy request_timeout |
| 221 | 206 | Defines the maximum time per request in seconds. |
| 222 | ||
| 223 | 207 | .It Sy sort |
| 224 | 208 | Configures how to sort the lists shown in windows like |
| 225 | 209 | .Sy :rooms |
| @@ -228,22 +212,17 @@ or | ||
| 228 | 212 | See |
| 229 | 213 | .Sx "SORTING LISTS" |
| 230 | 214 | for more details. |
| 231 | ||
| 232 | 215 | .It Sy state_event_display |
| 233 | 216 | Defines whether the state events like joined or left are shown. |
| 234 | ||
| 235 | 217 | .It Sy typing_notice_send |
| 236 | 218 | Defines whether or not the typing state is sent. |
| 237 | ||
| 238 | 219 | .It Sy typing_notice_display |
| 239 | 220 | Defines whether or not the typing state is displayed. |
| 240 | ||
| 241 | 221 | .It Sy user |
| 242 | 222 | Overrides values for the specified user. |
| 243 | 223 | See |
| 244 | 224 | .Sx "USER OVERRIDES" |
| 245 | 225 | for details on the format. |
| 246 | ||
| 247 | 226 | .It Sy username_display |
| 248 | 227 | Defines how usernames are shown for message senders. |
| 249 | 228 | Possible values are |
| @@ -251,17 +230,14 @@ Possible values are | ||
| 251 | 230 | .Dq Sy localpart , |
| 252 | 231 | or |
| 253 | 232 | .Dq Sy displayname . |
| 254 | ||
| 255 | 233 | .It Sy user_gutter_width |
| 256 | 234 | Specify the width of the column where usernames are displayed in a room. |
| 257 | 235 | Usernames that are too long are truncated. |
| 258 | 236 | Defaults to 30. |
| 259 | ||
| 260 | 237 | .It Sy tabstop |
| 261 | 238 | Number of spaces that a <Tab> counts for. |
| 262 | 239 | Defaults to 4. |
| 263 | 240 | .El |
| 264 | ||
| 265 | 241 | .Ss Example 1: Avoid showing Emojis (useful for terminals w/o support) |
| 266 | 242 | .Bd -literal -offset indent |
| 267 | 243 | [settings] |
| @@ -269,20 +245,17 @@ username = "username" | ||
| 269 | 245 | message_shortcode_display = true |
| 270 | 246 | reaction_shortcode_display = true |
| 271 | 247 | .Ed |
| 272 | ||
| 273 | 248 | .Ss Example 2: Increase request timeout to 2 minutes for a slow homeserver |
| 274 | 249 | .Bd -literal -offset indent |
| 275 | 250 | [settings] |
| 276 | 251 | request_timeout = 120 |
| 277 | 252 | .Ed |
| 278 | ||
| 279 | 253 | .Sh MOUSE |
| 280 | ||
| 281 | 254 | The |
| 282 | 255 | .Sy settings.mouse |
| 283 | 256 | subsection allows enabling mouse support. |
| 284 | 257 | Currently the only difference is that scrolling moves the window view instead of changing the selection. |
| 285 | ||
| 258 | .Pp | |
| 286 | 259 | The available fields in this subsection are: |
| 287 | 260 | .Bl -tag -width Ds |
| 288 | 261 | .It Sy enabled |
| @@ -291,13 +264,12 @@ Defaults to | ||
| 291 | 264 | Setting this field to |
| 292 | 265 | .Sy true |
| 293 | 266 | enables mouse support. |
| 294 | ||
| 267 | .El | |
| 295 | 268 | .Sh NOTIFICATIONS |
| 296 | ||
| 297 | 269 | The |
| 298 | 270 | .Sy settings.notifications |
| 299 | 271 | subsection allows configuring how notifications for new messages behave. |
| 300 | ||
| 272 | .Pp | |
| 301 | 273 | The available fields in this subsection are: |
| 302 | 274 | .Bl -tag -width Ds |
| 303 | 275 | .It Sy enabled |
| @@ -306,7 +278,6 @@ Defaults to | ||
| 306 | 278 | Setting this field to |
| 307 | 279 | .Sy true |
| 308 | 280 | enables notifications. |
| 309 | ||
| 310 | 281 | .It Sy via |
| 311 | 282 | Defaults to |
| 312 | 283 | .Dq Sy desktop |
| @@ -316,18 +287,15 @@ Setting this field to | ||
| 316 | 287 | will use the terminal bell instead. |
| 317 | 288 | Both can be used via |
| 318 | 289 | .Dq Sy desktop|bell . |
| 319 | ||
| 320 | 290 | .It Sy show_message |
| 321 | 291 | controls whether to show the message in the desktop notification, and defaults to |
| 322 | 292 | .Sy true . |
| 323 | 293 | Messages are truncated beyond a small length. |
| 324 | 294 | The notification rules are stored server side, loaded once at startup, and are currently not configurable in iamb. |
| 325 | 295 | In other words, you can simply change the rules with another client. |
| 326 | ||
| 327 | 296 | .It Sy sound_hint |
| 328 | 297 | Controls the notification sound name that is passed as a hint to the notification daemon. |
| 329 | 298 | .El |
| 330 | ||
| 331 | 299 | .Ss Example 1: Enable notifications with default options |
| 332 | 300 | .Bd -literal -offset indent |
| 333 | 301 | [settings.notifications] |
| @@ -347,13 +315,11 @@ enabled = true | ||
| 347 | 315 | sound_hint = "message-new-instant" # Linux |
| 348 | 316 | sound_hint = "IM" # Windows |
| 349 | 317 | .Ed |
| 350 | ||
| 351 | 318 | .Sh "SORTING LISTS" |
| 352 | ||
| 353 | 319 | The |
| 354 | 320 | .Sy settings.sort |
| 355 | 321 | subsection allows configuring how different windows have their contents sorted. |
| 356 | ||
| 322 | .Pp | |
| 357 | 323 | Fields available within this subsection are: |
| 358 | 324 | .Bl -tag -width Ds |
| 359 | 325 | .It Sy rooms |
| @@ -390,7 +356,7 @@ window. | ||
| 390 | 356 | Defaults to |
| 391 | 357 | .Sy ["power",\ "id"] . |
| 392 | 358 | .El |
| 393 | ||
| 359 | .Pp | |
| 394 | 360 | The available values are: |
| 395 | 361 | .Bl -tag -width Ds |
| 396 | 362 | .It Sy favorite |
| @@ -410,31 +376,25 @@ Sort rooms by most recent message timestamp. | ||
| 410 | 376 | .It Sy invite |
| 411 | 377 | Put invites before other rooms. |
| 412 | 378 | .El |
| 413 | .El | |
| 414 | ||
| 379 | .Pp | |
| 415 | 380 | Add a |
| 416 | 381 | .Dq Sy ~ |
| 417 | 382 | in front of any value to flip the order. |
| 418 | ||
| 419 | 383 | .Ss Example 1: Group room members by their server first and descending localpart second |
| 420 | 384 | .Bd -literal -offset indent |
| 421 | 385 | [settings.sort] |
| 422 | 386 | members = ["server", "~localpart"] |
| 423 | 387 | .Ed |
| 424 | ||
| 425 | 388 | .Sh "USER OVERRIDES" |
| 426 | ||
| 427 | 389 | The |
| 428 | 390 | .Sy settings.users |
| 429 | 391 | subsections allows overriding how specific senders are displayed. |
| 430 | 392 | Overrides are mapped onto Matrix User IDs such as |
| 431 | 393 | .Sy @user:matrix.org , |
| 432 | 394 | and are typically written as inline tables containing the following keys: |
| 433 | ||
| 434 | 395 | .Bl -tag -width Ds |
| 435 | 396 | .It Sy name |
| 436 | 397 | Change the display name of the user. |
| 437 | ||
| 438 | 398 | .It Sy color |
| 439 | 399 | Change the color the user is shown as. |
| 440 | 400 | Possible values are: |
| @@ -457,20 +417,16 @@ Possible values are: | ||
| 457 | 417 | and |
| 458 | 418 | .Dq Sy yellow . |
| 459 | 419 | .El |
| 460 | ||
| 461 | 420 | .Ss Example 1: Override how @ada:example.com appears in chat |
| 462 | 421 | .Bd -literal -offset indent |
| 463 | 422 | [settings.users] |
| 464 | 423 | "@ada:example.com" = { name = "Ada Lovelace", color = "light-red" } |
| 465 | 424 | .Ed |
| 466 | ||
| 467 | 425 | .Sh STARTUP LAYOUT |
| 468 | ||
| 469 | 426 | The |
| 470 | 427 | .Sy layout |
| 471 | 428 | section allows configuring the initial set of tabs and windows to show when |
| 472 | 429 | starting the client. |
| 473 | ||
| 474 | 430 | .Bl -tag -width Ds |
| 475 | 431 | .It Sy style |
| 476 | 432 | Specifies what window layout to load when starting. |
| @@ -484,7 +440,6 @@ if set), or | ||
| 484 | 440 | .Dq Sy config |
| 485 | 441 | to open the layout described under |
| 486 | 442 | .Sy tabs . |
| 487 | ||
| 488 | 443 | .It Sy tabs |
| 489 | 444 | If |
| 490 | 445 | .Sy style |
| @@ -497,7 +452,6 @@ key specifying a username, room identifier or room alias to show, or a | ||
| 497 | 452 | .Sy split |
| 498 | 453 | key specifying an array of window objects. |
| 499 | 454 | .El |
| 500 | ||
| 501 | 455 | .Ss Example 1: Show a single room every startup |
| 502 | 456 | .Bd -literal -offset indent |
| 503 | 457 | [settings] |
| @@ -523,67 +477,54 @@ split = [ | ||
| 523 | 477 | { "window" = "#iamb-dev:0x.badd.cafe" } |
| 524 | 478 | ] |
| 525 | 479 | .Ed |
| 526 | ||
| 527 | 480 | .Sh "CUSTOM KEYBINDINGS" |
| 528 | ||
| 529 | 481 | The |
| 530 | 482 | .Sy macros |
| 531 | 483 | subsections allow configuring custom keybindings. |
| 532 | 484 | Available subsections are: |
| 533 | ||
| 534 | 485 | .Bl -tag -width Ds |
| 535 | 486 | .It Sy insert , Sy i |
| 536 | 487 | Map the key sequences in this section in |
| 537 | 488 | .Sy Insert |
| 538 | 489 | mode. |
| 539 | ||
| 540 | 490 | .It Sy normal , Sy n |
| 541 | 491 | Map the key sequences in this section in |
| 542 | 492 | .Sy Normal |
| 543 | 493 | mode. |
| 544 | ||
| 545 | 494 | .It Sy visual , Sy v |
| 546 | 495 | Map the key sequences in this section in |
| 547 | 496 | .Sy Visual |
| 548 | 497 | mode. |
| 549 | ||
| 550 | 498 | .It Sy select |
| 551 | 499 | Map the key sequences in this section in |
| 552 | 500 | .Sy Select |
| 553 | 501 | mode. |
| 554 | ||
| 555 | 502 | .It Sy command , Sy c |
| 556 | 503 | Map the key sequences in this section in |
| 557 | 504 | .Sy Visual |
| 558 | 505 | mode. |
| 559 | ||
| 560 | 506 | .It Sy operator-pending |
| 561 | 507 | Map the key sequences in this section in |
| 562 | 508 | .Sy "Operator Pending" |
| 563 | 509 | mode. |
| 564 | 510 | .El |
| 565 | ||
| 511 | .Pp | |
| 566 | 512 | Multiple modes can be given together by separating their names with |
| 567 | 513 | .Dq Sy | . |
| 568 | ||
| 569 | 514 | .Ss Example 1: Use "jj" to exit Insert mode |
| 570 | 515 | .Bd -literal -offset indent |
| 571 | 516 | [macros.insert] |
| 572 | 517 | "jj" = "<Esc>" |
| 573 | 518 | .Ed |
| 574 | ||
| 575 | 519 | .Ss Example 2: Use "V" for switching between message bar and room history |
| 576 | 520 | .Bd -literal -offset indent |
| 577 | 521 | [macros."normal|visual"] |
| 578 | 522 | "V" = "<C-W>m" |
| 579 | 523 | .Ed |
| 580 | ||
| 581 | 524 | .Sh DIRECTORIES |
| 582 | ||
| 583 | 525 | Specifies the directories to save data in. |
| 584 | 526 | Configured as an object under the key |
| 585 | 527 | .Sy dirs . |
| 586 | ||
| 587 | 528 | .Bl -tag -width Ds |
| 588 | 529 | .It Sy cache |
| 589 | 530 | Specifies where to store assets and temporary data in. |
| @@ -594,22 +535,18 @@ and | ||
| 594 | 535 | will also go in here by default.) |
| 595 | 536 | Defaults to |
| 596 | 537 | .Ev $XDG_CACHE_HOME/iamb . |
| 597 | ||
| 598 | 538 | .It Sy data |
| 599 | 539 | Specifies where to store persistent data in, such as E2EE room keys. |
| 600 | 540 | Defaults to |
| 601 | 541 | .Ev $XDG_DATA_HOME/iamb . |
| 602 | ||
| 603 | 542 | .It Sy downloads |
| 604 | 543 | Specifies where to store downloaded files. |
| 605 | 544 | Defaults to |
| 606 | 545 | .Ev $XDG_DOWNLOAD_DIR . |
| 607 | ||
| 608 | 546 | .It Sy image_previews |
| 609 | 547 | Specifies where to store automatically downloaded image previews. |
| 610 | 548 | Defaults to |
| 611 | 549 | .Ev ${cache}/image_preview_downloads . |
| 612 | ||
| 613 | 550 | .It Sy logs |
| 614 | 551 | Specifies where to store log files. |
| 615 | 552 | Defaults to |