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
124124key and can be overridden as described in
125125.Sx PROFILES .
126126.Bl -tag -width Ds
127
128127.It Sy external_edit_file_suffix
129128Suffix to append to temporary file names when using the :editor command. Defaults to .md.
130
131129.It Sy default_room
132130The room to show by default instead of the
133131.Sy :welcome
134132window.
135
136133.It Sy image_preview
137134Enable image previews and configure it.
138135An empty object will enable the feature with default settings, omitting it will disable the feature.
@@ -169,57 +166,44 @@ Possible values are:
169166.Dq Sy error .
170167Also supports the syntax defined by
171168.Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html
172
173169.It Sy max_log_files
174170Specifies how many daily log files should be saved.
175171Set this to
176172.Sy 0
177173to disable automatically deleting log files.
178Defaults to
174Defaults to
179175.Sy 7 .
180
181176.It Sy mouse
182177Enable mouse support
183178See
184179.Sx MOUSE
185180for more details.
186
187181.It Sy message_shortcode_display
188182Defines whether or not Emoji characters in messages should be replaced by their
189183respective shortcodes.
190
191184.It Sy message_user_color
192185Defines whether or not the message body is colored like the username.
193
194186.It Sy normal_after_send
195187Defines whether to reset input to Normal mode after sending a message.
196
197188.It Sy notifications
198189When this subsection is present, you can enable and configure push notifications.
199190See
200191.Sx NOTIFICATIONS
201192for more details.
202
203193.It Sy open_command
204194Defines a custom command and its arguments to run when opening downloads instead of the default.
205195(For example,
206196.Sy ["my-open",\ "--file"] . )
207
208197.It Sy reaction_display
209198Defines whether or not reactions should be shown.
210
211199.It Sy reaction_shortcode_display
212200Defines whether or not reactions should be shown as their respective shortcode.
213
214201.It Sy read_receipt_send
215202Defines whether or not read confirmations are sent.
216
217203.It Sy read_receipt_display
218204Defines whether or not read confirmations are displayed.
219
220205.It Sy request_timeout
221206Defines the maximum time per request in seconds.
222
223207.It Sy sort
224208Configures how to sort the lists shown in windows like
225209.Sy :rooms
@@ -228,22 +212,17 @@ or
228212See
229213.Sx "SORTING LISTS"
230214for more details.
231
232215.It Sy state_event_display
233216Defines whether the state events like joined or left are shown.
234
235217.It Sy typing_notice_send
236218Defines whether or not the typing state is sent.
237
238219.It Sy typing_notice_display
239220Defines whether or not the typing state is displayed.
240
241221.It Sy user
242222Overrides values for the specified user.
243223See
244224.Sx "USER OVERRIDES"
245225for details on the format.
246
247226.It Sy username_display
248227Defines how usernames are shown for message senders.
249228Possible values are
@@ -251,17 +230,14 @@ Possible values are
251230.Dq Sy localpart ,
252231or
253232.Dq Sy displayname .
254
255233.It Sy user_gutter_width
256234Specify the width of the column where usernames are displayed in a room.
257235Usernames that are too long are truncated.
258236Defaults to 30.
259
260237.It Sy tabstop
261238Number of spaces that a <Tab> counts for.
262239Defaults to 4.
263240.El
264
265241.Ss Example 1: Avoid showing Emojis (useful for terminals w/o support)
266242.Bd -literal -offset indent
267243[settings]
@@ -269,20 +245,17 @@ username = "username"
269245message_shortcode_display = true
270246reaction_shortcode_display = true
271247.Ed
272
273248.Ss Example 2: Increase request timeout to 2 minutes for a slow homeserver
274249.Bd -literal -offset indent
275250[settings]
276251request_timeout = 120
277252.Ed
278
279253.Sh MOUSE
280
281254The
282255.Sy settings.mouse
283256subsection allows enabling mouse support.
284257Currently the only difference is that scrolling moves the window view instead of changing the selection.
285
258.Pp
286259The available fields in this subsection are:
287260.Bl -tag -width Ds
288261.It Sy enabled
@@ -291,13 +264,12 @@ Defaults to
291264Setting this field to
292265.Sy true
293266enables mouse support.
294
267.El
295268.Sh NOTIFICATIONS
296
297269The
298270.Sy settings.notifications
299271subsection allows configuring how notifications for new messages behave.
300
272.Pp
301273The available fields in this subsection are:
302274.Bl -tag -width Ds
303275.It Sy enabled
@@ -306,7 +278,6 @@ Defaults to
306278Setting this field to
307279.Sy true
308280enables notifications.
309
310281.It Sy via
311282Defaults to
312283.Dq Sy desktop
@@ -316,18 +287,15 @@ Setting this field to
316287will use the terminal bell instead.
317288Both can be used via
318289.Dq Sy desktop|bell .
319
320290.It Sy show_message
321291controls whether to show the message in the desktop notification, and defaults to
322292.Sy true .
323293Messages are truncated beyond a small length.
324294The notification rules are stored server side, loaded once at startup, and are currently not configurable in iamb.
325295In other words, you can simply change the rules with another client.
326
327296.It Sy sound_hint
328297Controls the notification sound name that is passed as a hint to the notification daemon.
329298.El
330
331299.Ss Example 1: Enable notifications with default options
332300.Bd -literal -offset indent
333301[settings.notifications]
@@ -347,13 +315,11 @@ enabled = true
347315sound_hint = "message-new-instant" # Linux
348316sound_hint = "IM" # Windows
349317.Ed
350
351318.Sh "SORTING LISTS"
352
353319The
354320.Sy settings.sort
355321subsection allows configuring how different windows have their contents sorted.
356
322.Pp
357323Fields available within this subsection are:
358324.Bl -tag -width Ds
359325.It Sy rooms
@@ -390,7 +356,7 @@ window.
390356Defaults to
391357.Sy ["power",\ "id"] .
392358.El
393
359.Pp
394360The available values are:
395361.Bl -tag -width Ds
396362.It Sy favorite
@@ -410,31 +376,25 @@ Sort rooms by most recent message timestamp.
410376.It Sy invite
411377Put invites before other rooms.
412378.El
413.El
414
379.Pp
415380Add a
416381.Dq Sy ~
417382in front of any value to flip the order.
418
419383.Ss Example 1: Group room members by their server first and descending localpart second
420384.Bd -literal -offset indent
421385[settings.sort]
422386members = ["server", "~localpart"]
423387.Ed
424
425388.Sh "USER OVERRIDES"
426
427389The
428390.Sy settings.users
429391subsections allows overriding how specific senders are displayed.
430392Overrides are mapped onto Matrix User IDs such as
431393.Sy @user:matrix.org ,
432394and are typically written as inline tables containing the following keys:
433
434395.Bl -tag -width Ds
435396.It Sy name
436397Change the display name of the user.
437
438398.It Sy color
439399Change the color the user is shown as.
440400Possible values are:
@@ -457,20 +417,16 @@ Possible values are:
457417and
458418.Dq Sy yellow .
459419.El
460
461420.Ss Example 1: Override how @ada:example.com appears in chat
462421.Bd -literal -offset indent
463422[settings.users]
464423"@ada:example.com" = { name = "Ada Lovelace", color = "light-red" }
465424.Ed
466
467425.Sh STARTUP LAYOUT
468
469426The
470427.Sy layout
471428section allows configuring the initial set of tabs and windows to show when
472429starting the client.
473
474430.Bl -tag -width Ds
475431.It Sy style
476432Specifies what window layout to load when starting.
@@ -484,7 +440,6 @@ if set), or
484440.Dq Sy config
485441to open the layout described under
486442.Sy tabs .
487
488443.It Sy tabs
489444If
490445.Sy style
@@ -497,7 +452,6 @@ key specifying a username, room identifier or room alias to show, or a
497452.Sy split
498453key specifying an array of window objects.
499454.El
500
501455.Ss Example 1: Show a single room every startup
502456.Bd -literal -offset indent
503457[settings]
@@ -523,67 +477,54 @@ split = [
523477 { "window" = "#iamb-dev:0x.badd.cafe" }
524478]
525479.Ed
526
527480.Sh "CUSTOM KEYBINDINGS"
528
529481The
530482.Sy macros
531483subsections allow configuring custom keybindings.
532484Available subsections are:
533
534485.Bl -tag -width Ds
535486.It Sy insert , Sy i
536487Map the key sequences in this section in
537488.Sy Insert
538489mode.
539
540490.It Sy normal , Sy n
541491Map the key sequences in this section in
542492.Sy Normal
543493mode.
544
545494.It Sy visual , Sy v
546495Map the key sequences in this section in
547496.Sy Visual
548497mode.
549
550498.It Sy select
551499Map the key sequences in this section in
552500.Sy Select
553501mode.
554
555502.It Sy command , Sy c
556503Map the key sequences in this section in
557504.Sy Visual
558505mode.
559
560506.It Sy operator-pending
561507Map the key sequences in this section in
562508.Sy "Operator Pending"
563509mode.
564510.El
565
511.Pp
566512Multiple modes can be given together by separating their names with
567513.Dq Sy | .
568
569514.Ss Example 1: Use "jj" to exit Insert mode
570515.Bd -literal -offset indent
571516[macros.insert]
572517"jj" = "<Esc>"
573518.Ed
574
575519.Ss Example 2: Use "V" for switching between message bar and room history
576520.Bd -literal -offset indent
577521[macros."normal|visual"]
578522"V" = "<C-W>m"
579523.Ed
580
581524.Sh DIRECTORIES
582
583525Specifies the directories to save data in.
584526Configured as an object under the key
585527.Sy dirs .
586
587528.Bl -tag -width Ds
588529.It Sy cache
589530Specifies where to store assets and temporary data in.
@@ -594,22 +535,18 @@ and
594535will also go in here by default.)
595536Defaults to
596537.Ev $XDG_CACHE_HOME/iamb .
597
598538.It Sy data
599539Specifies where to store persistent data in, such as E2EE room keys.
600540Defaults to
601541.Ev $XDG_DATA_HOME/iamb .
602
603542.It Sy downloads
604543Specifies where to store downloaded files.
605544Defaults to
606545.Ev $XDG_DOWNLOAD_DIR .
607
608546.It Sy image_previews
609547Specifies where to store automatically downloaded image previews.
610548Defaults to
611549.Ev ${cache}/image_preview_downloads .
612
613550.It Sy logs
614551Specifies where to store log files.
615552Defaults to