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