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