docs/iamb.1

430 lines · 12993 bytes

  1.\" iamb(1) manual page
  2.\"
  3.\" This manual page is written using the mdoc(7) macros. For more
  4.\" information, see <https://manpages.bsd.lv/mdoc.html>.
  5.\"
  6.\" You can preview this file with:
  7.\"     $ man ./docs/iamb.1
  8.Dd Mar 24, 2024
  9.Dt IAMB 1
 10.Os
 11.Sh NAME
 12.Nm iamb
 13.Nd a terminal-based client for Matrix for the Vim addict
 14.Sh SYNOPSIS
 15.Nm
 16.Op Fl hV
 17.Op Fl P Ar profile
 18.Op Fl C Ar dir
 19.Sh DESCRIPTION
 20.Nm
 21is a client for the Matrix communication protocol.
 22It provides a terminal user interface with familiar Vim keybindings, and
 23includes support for multiple profiles, threads, spaces, notifications,
 24reactions, custom keybindings, and more.
 25.Pp
 26This manual page includes a quick rundown of the available commands in
 27.Nm .
 28For example usage and a full description of each one and its arguments, please
 29refer to the full documentation online.
 30.Sh OPTIONS
 31.Bl -tag -width Ds
 32.It Fl P , Fl Fl profile
 33The profile to start
 34.Nm
 35with.
 36If this flag is not specified,
 37then it defaults to using
 38.Sy default_profile
 39(see
 40.Xr iamb 5 ) .
 41.It Fl C , Fl Fl config-directory
 42Path to the directory the configuration file is located in.
 43.It Fl h , Fl Fl help
 44Show the help text and quit.
 45.It Fl V , Fl Fl version
 46Show the current
 47.Nm
 48version and quit.
 49.El
 50
 51.Sh "GENERAL COMMANDS"
 52.Bl -tag -width Ds
 53.It Sy ":chats"
 54View a list of joined rooms and direct messages.
 55.It Sy ":dms"
 56View a list of direct messages.
 57.It Sy ":logout [user id]"
 58Log out of
 59.Nm .
 60.It Sy ":rooms"
 61View a list of joined rooms.
 62.It Sy ":spaces"
 63View a list of joined spaces.
 64.It Sy ":unreads"
 65View a list of unread rooms.
 66.It Sy ":unreads clear"
 67Mark all rooms as read.
 68.It Sy ":mentions"
 69View a list of rooms with mentions of the current user.
 70.It Sy ":welcome"
 71View the startup Welcome window.
 72.It Sy ":forget"
 73Remove all left rooms from the internal database.
 74.El
 75.Sh "E2EE COMMANDS"
 76.Bl -tag -width Ds
 77.It Sy ":keys export [path] [passphrase]"
 78Export and encrypt keys to
 79.Pa path .
 80.It Sy ":keys import [path] [passphrase]"
 81Import and decrypt keys from
 82.Pa path .
 83.It Sy ":verify"
 84View a list of ongoing E2EE verifications.
 85.It Sy ":verify accept [key]"
 86Accept a verification request.
 87.It Sy ":verify cancel [key]"
 88Cancel an in-progress verification.
 89.It Sy ":verify confirm [key]"
 90Confirm an in-progress verification.
 91.It Sy ":verify mismatch [key]"
 92Reject an in-progress verification due to mismatched Emoji.
 93.It Sy ":verify request [user id]"
 94Request a new verification with the specified user.
 95.El
 96
 97.Sh "MESSAGE COMMANDS"
 98.Bl -tag -width Ds
 99.It Sy ":download [path]"
100Download an attachment from the selected message and save it to the optional path.
101.It Sy ":open [path]"
102Download and then open an attachment, or open a link in a message.
103.It Sy ":edit"
104Edit the selected message.
105.It Sy ":editor"
106Open an external
107.Ev $EDITOR
108to compose a message.
109.It Sy ":react [shortcode]"
110React to the selected message with an Emoji.
111.It Sy ":unreact [shortcode]"
112Remove your reaction from the selected message.
113When no arguments are given, remove all of your reactions from the message.
114.It Sy ":redact [reason]"
115Redact the selected message with the optional reason.
116.It Sy ":reply"
117Reply to the selected message.
118.It Sy ":cancel"
119Cancel the currently drafted message including replies.
120.It Sy ":replied"
121Go to the message the current message replied to.
122.It Sy ":upload [path]"
123Upload an attachment and send it to the currently selected room.
124.El
125
126.Sh "ROOM COMMANDS"
127.Bl -tag -width Ds
128.It Sy ":create [arguments]"
129Create a new room. Arguments can be
130.Dq ++alias=[alias] ,
131.Dq ++public ,
132.Dq ++space ,
133and
134.Dq ++encrypted .
135.It Sy ":follow next"
136Follow the tombstone information to the upgraded room.
137.It Sy ":follow previous"
138Follow the room creation information to the pre-upgraded room.
139.It Sy ":invite accept"
140Accept an invitation to the currently focused room.
141.It Sy ":invite reject"
142Reject an invitation to the currently focused room.
143.It Sy ":invite send [user]"
144Send an invitation to a user to join the currently focused room.
145.It Sy ":join [room]"
146Join a room or open it if you are already joined.
147.It Sy ":knock accept [user]"
148Accept a knock from the specified user in the currently focused room.
149.It Sy ":knock ban [user] [reason]"
150Reject a knock from the specified user to the currently focused room, and ban them with an optional reason.
151.It Sy ":knock reject [user] [reason]"
152Reject a knock from the specified user to the currently focused room with an optional reason.
153.It Sy ":knock send [room] [reason]"
154Send an invitation to a user to join the currently focused room with an optional reason.
155.It Sy ":leave"
156Leave the currently focused room.
157.It Sy ":members"
158View a list of members of the currently focused room.
159.It Sy ":room access set [rule]"
160Set the join rules for the room to control who can access it.
161Possible values for the
162.Sy rule
163argument are
164.Dq invite ,
165.Dq knock ,
166.Dq knock-restricted ,
167.Dq public ,
168and
169.Dq restricted .
170The
171.Dq knock-restricted
172and
173.Dq restricted
174values allow additional
175.Sy ++members=!room:example.org
176arguments to specify rooms (and spaces) whose members are allowed to join without an invite or knocking.
177.It Sy ":room access unset"
178Set the room to being invite-only so that those not already members cannot join.
179.It Sy ":room access show"
180Show the current join rules for the room.
181.It Sy ":room dm set"
182Mark the currently focused room as a direct message.
183.It Sy ":room dm unset"
184Mark the currently focused room as a normal room.
185.It Sy ":room name set [name]"
186Set the name of the currently focused room.
187.It Sy ":room name unset"
188Unset the name of the currently focused room.
189.It Sy ":room unread set"
190Mark the currently focused room as unread.
191.It Sy ":room unread unset"
192Mark the currently focused room as read.
193.It Sy ":room unread clear"
194Alias for
195.Sy :room unread unset .
196.It Sy ":room version show"
197Show the Matrix version for this room.
198.It Sy ":room version upgrade [version] [additional creators...]"
199Upgrade the Matrix version for this room to the specified version.
200Note that room upgrading in Matrix works by creating a new room that everyone else will then need to join.
201.It Sy ":room notify set [level]"
202Set a notification level for the currently focused room.
203Valid levels are
204.Dq mute ,
205.Dq mentions ,
206.Dq keywords ,
207and
208.Dq all .
209Note that
210.Dq mentions
211and
212.Dq keywords
213are aliases for the same behaviour.
214.It Sy ":room notify unset"
215Unset any room-level notification configuration.
216.It Sy ":room notify show"
217Show the current room-level notification configuration.
218If the room is using the account-level default, then this will print
219.Dq default .
220.It Sy ":room tag set [tag]"
221Add a tag to the currently focused room.
222.It Sy ":room tag unset [tag]"
223Remove a tag from the currently focused room.
224.It Sy ":room topic set [topic]"
225Set the topic of the currently focused room.
226.It Sy ":room topic unset"
227Unset the topic of the currently focused room.
228.It Sy ":room topic show"
229Show the topic of the currently focused room.
230.It Sy ":room alias set [alias]"
231Create and point the given alias to the room.
232.It Sy ":room alias unset [alias]"
233Delete the provided alias from the room's alternative alias list.
234.It Sy ":room alias show"
235Show alternative aliases to the room, if any are set.
236.It Sy ":room id show"
237Show the Matrix identifier for the room.
238.It Sy ":room canon set [alias]"
239Set the room's canonical alias to the one provided, and make the previous one an alternative alias.
240.It Sy ":room canon unset [alias]"
241Delete the room's canonical alias.
242.It Sy ":room canon show"
243Show the room's canonical alias, if any is set.
244.It Sy ":room history show"
245Show the history visibility setting for the current room.
246.It Sy ":room history set [mode]" .\" TODO: get options
247Set the history visibility for the current room.
248Valid modes are
249.Dq invited
250(new events after invitation),
251.Dq joined
252(new events after join),
253.Dq shared
254(whole history after join),
255.Dq world_readable
256(whole history for unjoined users).
257.It Sy ":room history unset"
258Reset the room visibility setting to
259.Dq joined .
260.It Sy ":room ban [user] [reason]"
261Ban a user from this room with an optional reason.
262.It Sy ":room unban [user] [reason]"
263Unban a user from this room with an optional reason.
264.It Sy ":room kick [user] [reason]"
265Kick a user from this room with an optional reason.
266.It Sy ":room user name set [name]"
267Set your user display name for this room.
268.It Sy ":room user name unset"
269Delete your per-room user display name.
270.It Sy ":room user name show"
271Show the display name you currently have in this room.
272.El
273.Sh "SPACE COMMANDS"
274.Bl -tag -width Ds
275.It Sy ":space child set [room] [arguments]"
276Add a room to the currently focused space.
277.Dq ++suggested
278marks the room as a suggested child.
279.Dq ++order=[string]
280specifies a string by which children are lexicographically ordered.
281.It Sy ":space child remove"
282Remove the selected room from the currently focused space.
283.El
284.Sh "PROFILE COMMANDS"
285.Bl -tag -width Ds
286.It Sy ":self avatar set [mxc://...]"
287Set the avatar URL for your profile.
288.It Sy ":self avatar unset"
289Unset the avatar for your profile.
290.It Sy ":self avatar show"
291Show the current avatar URL for your profile.
292.It Sy ":self name set [nickname]"
293Set the display name for your profile.
294.It Sy ":self name unset"
295Unset the display name for your profile.
296.It Sy ":self name show"
297Show the current display name for your profile.
298.It Sy ":self timezone set [tz]"
299Set the timezone for your profile.
300.It Sy ":self timezone unset"
301Unset the timezone for your profile.
302.It Sy ":self timezone show"
303Show the current timezone for your profile.
304.El
305.Sh "WINDOW COMMANDS"
306.Bl -tag -width Ds
307.It Sy ":horizontal [cmd]"
308Change the behaviour of the given command to be horizontal.
309.It Sy ":leftabove [cmd]"
310Change the behaviour of the given command to open before the current window.
311.It Sy ":only" , Sy ":on"
312Quit all but one window in the current tab.
313.It Sy ":quit" , Sy ":q"
314Quit a window.
315.It Sy ":quitall" , Sy ":qa"
316Quit all windows in the current tab.
317.It Sy ":resize"
318Resize a window.
319.It Sy ":rightbelow [cmd]"
320Change the behaviour of the given command to open after the current window.
321.It Sy ":split" , Sy ":sp"
322Horizontally split a window.
323.It Sy ":vertical [cmd]"
324Change the layout of the following command to be vertical.
325.It Sy ":vsplit" , Sy ":vsp"
326Vertically split a window.
327.El
328
329.Sh "TAB COMMANDS"
330.Bl -tag -width Ds
331.It Sy ":tab [cmd]"
332Run a command that opens a window in a new tab.
333.It Sy ":tabclose" , Sy ":tabc"
334Close a tab.
335.It Sy ":tabedit [room]" , Sy ":tabe"
336Open a room in a new tab.
337.It Sy ":tabrewind" , Sy ":tabr"
338Go to the first tab.
339.It Sy ":tablast" , Sy ":tabl"
340Go to the last tab.
341.It Sy ":tabnext" , Sy ":tabn"
342Go to the next tab.
343.It Sy ":tabonly" , Sy ":tabo"
344Close all but one tab.
345.It Sy ":tabprevious" , Sy ":tabp"
346Go to the preview tab.
347.El
348
349.Sh "SLASH COMMANDS"
350.Bl -tag -width Ds
351.It Sy "/markdown" , Sy "/md"
352Interpret the message body as Markdown markup.
353This is the default behaviour.
354.It Sy "/html" , Sy "/h"
355Send the message body as literal HTML.
356.It Sy "/plaintext" , Sy "/plain" , Sy "/p"
357Do not interpret any markup in the message body and send it as it is.
358.It Sy "/me"
359Send an emote message.
360.It Sy "/confetti"
361Produces no effect in
362.Nm ,
363but will display confetti in Matrix clients that support doing so.
364.It Sy "/fireworks"
365Produces no effect in
366.Nm ,
367but will display fireworks in Matrix clients that support doing so.
368.It Sy "/hearts"
369Produces no effect in
370.Nm ,
371but will display floating hearts in Matrix clients that support doing so.
372.It Sy "/rainfall"
373Produces no effect in
374.Nm ,
375but will display rainfall in Matrix clients that support doing so.
376.It Sy "/snowfall"
377Produces no effect in
378.Nm ,
379but will display snowfall in Matrix clients that support doing so.
380.It Sy "/spaceinvaders"
381Produces no effect in
382.Nm ,
383but will display aliens from Space Invaders in Matrix clients that support doing so.
384.El
385
386.Sh "ENVIRONMENT"
387The behaviour of
388.Nm
389is affected by the following environment variables.
390.Bl -tag -width Ds
391.It Sy "ALL_PROXY, HTTP_PROXY, HTTPS_PROXY"
392Sets the proxy server to use.
393These names also work in lowercase.
394Example:
395.Dq export ALL_PROXY=socks5://localhost:9050 .
396.It Sy "RUST_LOG"
397Overwrites the value set by the
398.Sy log_level
399config value.
400The syntax is defined at
401.Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html
402
403.Sh EXAMPLES
404.Ss Example 1: Starting with a specific profile
405To start with a profile named
406.Sy personal
407instead of the
408.Sy default_profile
409value:
410.Bd -literal -offset indent
411$ iamb -P personal
412.Ed
413.Ss Example 2: Using an alternate configuration directory
414By default,
415.Nm
416will use the XDG directories, but you may sometimes want to store
417your configuration elsewhere.
418.Bd -literal -offset indent
419$ iamb -C ~/src/iamb-dev/dev-config/
420.Ed
421.Sh "REPORTING BUGS"
422Please report bugs in
423.Nm
424or its manual pages at
425.Lk https://github.com/ulyssa/iamb/issues
426.Sh "SEE ALSO"
427.Xr iamb 5
428.Pp
429Extended documentation is available online at
430.Lk https://iamb.chat