Commit 7559a2483b

7559a2483b70cf8ea2dd7604337c97bfa5c663f0

parent: 51e871cb3a

Unregistered key

stevenpollack <stevenpollack@users.noreply.github.com> · 2026-07-24 14:46 UTC
committer: <noreply@github.com>

Fix mdoc(7) warnings in docs/iamb.5 (#621)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

Layout: unified · split

docs/iamb.5 +8 −71
@@ -124,15 +124,12 @@ These options are configured as an object under the
124key and can be overridden as described in 124key 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
129Suffix to append to temporary file names when using the :editor command. Defaults to .md. 128Suffix 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
132The room to show by default instead of the 130The room to show by default instead of the
133.Sy :welcome 131.Sy :welcome
134window. 132window.
135
136.It Sy image_preview 133.It Sy image_preview
137Enable image previews and configure it. 134Enable image previews and configure it.
138An empty object will enable the feature with default settings, omitting it will disable the feature. 135An 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 .
170Also supports the syntax defined by 167Also 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
174Specifies how many daily log files should be saved. 170Specifies how many daily log files should be saved.
175Set this to 171Set this to
176.Sy 0 172.Sy 0
177to disable automatically deleting log files. 173to disable automatically deleting log files.
178Defaults to 174Defaults to
179.Sy 7 . 175.Sy 7 .
180
181.It Sy mouse 176.It Sy mouse
182Enable mouse support 177Enable mouse support
183See 178See
184.Sx MOUSE 179.Sx MOUSE
185for more details. 180for more details.
186
187.It Sy message_shortcode_display 181.It Sy message_shortcode_display
188Defines whether or not Emoji characters in messages should be replaced by their 182Defines whether or not Emoji characters in messages should be replaced by their
189respective shortcodes. 183respective shortcodes.
190
191.It Sy message_user_color 184.It Sy message_user_color
192Defines whether or not the message body is colored like the username. 185Defines whether or not the message body is colored like the username.
193
194.It Sy normal_after_send 186.It Sy normal_after_send
195Defines whether to reset input to Normal mode after sending a message. 187Defines whether to reset input to Normal mode after sending a message.
196
197.It Sy notifications 188.It Sy notifications
198When this subsection is present, you can enable and configure push notifications. 189When this subsection is present, you can enable and configure push notifications.
199See 190See
200.Sx NOTIFICATIONS 191.Sx NOTIFICATIONS
201for more details. 192for more details.
202
203.It Sy open_command 193.It Sy open_command
204Defines a custom command and its arguments to run when opening downloads instead of the default. 194Defines 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
209Defines whether or not reactions should be shown. 198Defines whether or not reactions should be shown.
210
211.It Sy reaction_shortcode_display 199.It Sy reaction_shortcode_display
212Defines whether or not reactions should be shown as their respective shortcode. 200Defines whether or not reactions should be shown as their respective shortcode.
213
214.It Sy read_receipt_send 201.It Sy read_receipt_send
215Defines whether or not read confirmations are sent. 202Defines whether or not read confirmations are sent.
216
217.It Sy read_receipt_display 203.It Sy read_receipt_display
218Defines whether or not read confirmations are displayed. 204Defines whether or not read confirmations are displayed.
219
220.It Sy request_timeout 205.It Sy request_timeout
221Defines the maximum time per request in seconds. 206Defines the maximum time per request in seconds.
222
223.It Sy sort 207.It Sy sort
224Configures how to sort the lists shown in windows like 208Configures how to sort the lists shown in windows like
225.Sy :rooms 209.Sy :rooms
@@ -228,22 +212,17 @@ or
228See 212See
229.Sx "SORTING LISTS" 213.Sx "SORTING LISTS"
230for more details. 214for more details.
231
232.It Sy state_event_display 215.It Sy state_event_display
233Defines whether the state events like joined or left are shown. 216Defines whether the state events like joined or left are shown.
234
235.It Sy typing_notice_send 217.It Sy typing_notice_send
236Defines whether or not the typing state is sent. 218Defines whether or not the typing state is sent.
237
238.It Sy typing_notice_display 219.It Sy typing_notice_display
239Defines whether or not the typing state is displayed. 220Defines whether or not the typing state is displayed.
240
241.It Sy user 221.It Sy user
242Overrides values for the specified user. 222Overrides values for the specified user.
243See 223See
244.Sx "USER OVERRIDES" 224.Sx "USER OVERRIDES"
245for details on the format. 225for details on the format.
246
247.It Sy username_display 226.It Sy username_display
248Defines how usernames are shown for message senders. 227Defines how usernames are shown for message senders.
249Possible values are 228Possible values are
@@ -251,17 +230,14 @@ Possible values are
251.Dq Sy localpart , 230.Dq Sy localpart ,
252or 231or
253.Dq Sy displayname . 232.Dq Sy displayname .
254
255.It Sy user_gutter_width 233.It Sy user_gutter_width
256Specify the width of the column where usernames are displayed in a room. 234Specify the width of the column where usernames are displayed in a room.
257Usernames that are too long are truncated. 235Usernames that are too long are truncated.
258Defaults to 30. 236Defaults to 30.
259
260.It Sy tabstop 237.It Sy tabstop
261Number of spaces that a <Tab> counts for. 238Number of spaces that a <Tab> counts for.
262Defaults to 4. 239Defaults 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"
269message_shortcode_display = true 245message_shortcode_display = true
270reaction_shortcode_display = true 246reaction_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]
276request_timeout = 120 251request_timeout = 120
277.Ed 252.Ed
278
279.Sh MOUSE 253.Sh MOUSE
280
281The 254The
282.Sy settings.mouse 255.Sy settings.mouse
283subsection allows enabling mouse support. 256subsection allows enabling mouse support.
284Currently the only difference is that scrolling moves the window view instead of changing the selection. 257Currently the only difference is that scrolling moves the window view instead of changing the selection.
285 258.Pp
286The available fields in this subsection are: 259The 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
291Setting this field to 264Setting this field to
292.Sy true 265.Sy true
293enables mouse support. 266enables mouse support.
294 267.El
295.Sh NOTIFICATIONS 268.Sh NOTIFICATIONS
296
297The 269The
298.Sy settings.notifications 270.Sy settings.notifications
299subsection allows configuring how notifications for new messages behave. 271subsection allows configuring how notifications for new messages behave.
300 272.Pp
301The available fields in this subsection are: 273The 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
306Setting this field to 278Setting this field to
307.Sy true 279.Sy true
308enables notifications. 280enables notifications.
309
310.It Sy via 281.It Sy via
311Defaults to 282Defaults to
312.Dq Sy desktop 283.Dq Sy desktop
@@ -316,18 +287,15 @@ Setting this field to
316will use the terminal bell instead. 287will use the terminal bell instead.
317Both can be used via 288Both 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
321controls whether to show the message in the desktop notification, and defaults to 291controls whether to show the message in the desktop notification, and defaults to
322.Sy true . 292.Sy true .
323Messages are truncated beyond a small length. 293Messages are truncated beyond a small length.
324The notification rules are stored server side, loaded once at startup, and are currently not configurable in iamb. 294The notification rules are stored server side, loaded once at startup, and are currently not configurable in iamb.
325In other words, you can simply change the rules with another client. 295In other words, you can simply change the rules with another client.
326
327.It Sy sound_hint 296.It Sy sound_hint
328Controls the notification sound name that is passed as a hint to the notification daemon. 297Controls 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
347sound_hint = "message-new-instant" # Linux 315sound_hint = "message-new-instant" # Linux
348sound_hint = "IM" # Windows 316sound_hint = "IM" # Windows
349.Ed 317.Ed
350
351.Sh "SORTING LISTS" 318.Sh "SORTING LISTS"
352
353The 319The
354.Sy settings.sort 320.Sy settings.sort
355subsection allows configuring how different windows have their contents sorted. 321subsection allows configuring how different windows have their contents sorted.
356 322.Pp
357Fields available within this subsection are: 323Fields 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.
390Defaults to 356Defaults to
391.Sy ["power",\ "id"] . 357.Sy ["power",\ "id"] .
392.El 358.El
393 359.Pp
394The available values are: 360The 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
411Put invites before other rooms. 377Put invites before other rooms.
412.El 378.El
413.El 379.Pp
414
415Add a 380Add a
416.Dq Sy ~ 381.Dq Sy ~
417in front of any value to flip the order. 382in 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]
422members = ["server", "~localpart"] 386members = ["server", "~localpart"]
423.Ed 387.Ed
424
425.Sh "USER OVERRIDES" 388.Sh "USER OVERRIDES"
426
427The 389The
428.Sy settings.users 390.Sy settings.users
429subsections allows overriding how specific senders are displayed. 391subsections allows overriding how specific senders are displayed.
430Overrides are mapped onto Matrix User IDs such as 392Overrides are mapped onto Matrix User IDs such as
431.Sy @user:matrix.org , 393.Sy @user:matrix.org ,
432and are typically written as inline tables containing the following keys: 394and 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
436Change the display name of the user. 397Change the display name of the user.
437
438.It Sy color 398.It Sy color
439Change the color the user is shown as. 399Change the color the user is shown as.
440Possible values are: 400Possible values are:
@@ -457,20 +417,16 @@ Possible values are:
457and 417and
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
469The 426The
470.Sy layout 427.Sy layout
471section allows configuring the initial set of tabs and windows to show when 428section allows configuring the initial set of tabs and windows to show when
472starting the client. 429starting the client.
473
474.Bl -tag -width Ds 430.Bl -tag -width Ds
475.It Sy style 431.It Sy style
476Specifies what window layout to load when starting. 432Specifies what window layout to load when starting.
@@ -484,7 +440,6 @@ if set), or
484.Dq Sy config 440.Dq Sy config
485to open the layout described under 441to open the layout described under
486.Sy tabs . 442.Sy tabs .
487
488.It Sy tabs 443.It Sy tabs
489If 444If
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
498key specifying an array of window objects. 453key 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
529The 481The
530.Sy macros 482.Sy macros
531subsections allow configuring custom keybindings. 483subsections allow configuring custom keybindings.
532Available subsections are: 484Available 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
536Map the key sequences in this section in 487Map the key sequences in this section in
537.Sy Insert 488.Sy Insert
538mode. 489mode.
539
540.It Sy normal , Sy n 490.It Sy normal , Sy n
541Map the key sequences in this section in 491Map the key sequences in this section in
542.Sy Normal 492.Sy Normal
543mode. 493mode.
544
545.It Sy visual , Sy v 494.It Sy visual , Sy v
546Map the key sequences in this section in 495Map the key sequences in this section in
547.Sy Visual 496.Sy Visual
548mode. 497mode.
549
550.It Sy select 498.It Sy select
551Map the key sequences in this section in 499Map the key sequences in this section in
552.Sy Select 500.Sy Select
553mode. 501mode.
554
555.It Sy command , Sy c 502.It Sy command , Sy c
556Map the key sequences in this section in 503Map the key sequences in this section in
557.Sy Visual 504.Sy Visual
558mode. 505mode.
559
560.It Sy operator-pending 506.It Sy operator-pending
561Map the key sequences in this section in 507Map the key sequences in this section in
562.Sy "Operator Pending" 508.Sy "Operator Pending"
563mode. 509mode.
564.El 510.El
565 511.Pp
566Multiple modes can be given together by separating their names with 512Multiple 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
583Specifies the directories to save data in. 525Specifies the directories to save data in.
584Configured as an object under the key 526Configured 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
589Specifies where to store assets and temporary data in. 530Specifies where to store assets and temporary data in.
@@ -594,22 +535,18 @@ and
594will also go in here by default.) 535will also go in here by default.)
595Defaults to 536Defaults to
596.Ev $XDG_CACHE_HOME/iamb . 537.Ev $XDG_CACHE_HOME/iamb .
597
598.It Sy data 538.It Sy data
599Specifies where to store persistent data in, such as E2EE room keys. 539Specifies where to store persistent data in, such as E2EE room keys.
600Defaults to 540Defaults to
601.Ev $XDG_DATA_HOME/iamb . 541.Ev $XDG_DATA_HOME/iamb .
602
603.It Sy downloads 542.It Sy downloads
604Specifies where to store downloaded files. 543Specifies where to store downloaded files.
605Defaults to 544Defaults to
606.Ev $XDG_DOWNLOAD_DIR . 545.Ev $XDG_DOWNLOAD_DIR .
607
608.It Sy image_previews 546.It Sy image_previews
609Specifies where to store automatically downloaded image previews. 547Specifies where to store automatically downloaded image previews.
610Defaults to 548Defaults to
611.Ev ${cache}/image_preview_downloads . 549.Ev ${cache}/image_preview_downloads .
612
613.It Sy logs 550.It Sy logs
614Specifies where to store log files. 551Specifies where to store log files.
615Defaults to 552Defaults to