docs/iamb.1
433 lines · 13142 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]
178arguments to specify rooms (and spaces) whose members are allowed to join without an invite or knocking.
179If a room alias is given instead of an id, it is resolved immediately.
180.It Sy ":room access unset"
181Set the room to being invite-only so that those not already members cannot join.
182.It Sy ":room access show"
183Show the current join rules for the room.
184.It Sy ":room dm set"
185Mark the currently focused room as a direct message.
186.It Sy ":room dm unset"
187Mark the currently focused room as a normal room.
188.It Sy ":room name set [name]"
189Set the name of the currently focused room.
190.It Sy ":room name unset"
191Unset the name of the currently focused room.
192.It Sy ":room unread set"
193Mark the currently focused room as unread.
194.It Sy ":room unread unset"
195Mark the currently focused room as read.
196.It Sy ":room unread clear"
197Alias for
198.Sy :room unread unset .
199.It Sy ":room version show"
200Show the Matrix version for this room.
201.It Sy ":room version upgrade [version] [additional creators...]"
202Upgrade the Matrix version for this room to the specified version.
203Note that room upgrading in Matrix works by creating a new room that everyone else will then need to join.
204.It Sy ":room notify set [level]"
205Set a notification level for the currently focused room.
206Valid levels are
207.Dq mute ,
208.Dq mentions ,
209.Dq keywords ,
210and
211.Dq all .
212Note that
213.Dq mentions
214and
215.Dq keywords
216are aliases for the same behaviour.
217.It Sy ":room notify unset"
218Unset any room-level notification configuration.
219.It Sy ":room notify show"
220Show the current room-level notification configuration.
221If the room is using the account-level default, then this will print
222.Dq default .
223.It Sy ":room tag set [tag]"
224Add a tag to the currently focused room.
225.It Sy ":room tag unset [tag]"
226Remove a tag from the currently focused room.
227.It Sy ":room topic set [topic]"
228Set the topic of the currently focused room.
229.It Sy ":room topic unset"
230Unset the topic of the currently focused room.
231.It Sy ":room topic show"
232Show the topic of the currently focused room.
233.It Sy ":room alias set [alias]"
234Create and point the given alias to the room.
235.It Sy ":room alias unset [alias]"
236Delete the provided alias from the room's alternative alias list.
237.It Sy ":room alias show"
238Show alternative aliases to the room, if any are set.
239.It Sy ":room id show"
240Show the Matrix identifier for the room.
241.It Sy ":room canon set [alias]"
242Set the room's canonical alias to the one provided, and make the previous one an alternative alias.
243.It Sy ":room canon unset [alias]"
244Delete the room's canonical alias.
245.It Sy ":room canon show"
246Show the room's canonical alias, if any is set.
247.It Sy ":room history show"
248Show the history visibility setting for the current room.
249.It Sy ":room history set [mode]" .\" TODO: get options
250Set the history visibility for the current room.
251Valid modes are
252.Dq invited
253(new events after invitation),
254.Dq joined
255(new events after join),
256.Dq shared
257(whole history after join),
258.Dq world_readable
259(whole history for unjoined users).
260.It Sy ":room history unset"
261Reset the room visibility setting to
262.Dq joined .
263.It Sy ":room ban [user] [reason]"
264Ban a user from this room with an optional reason.
265.It Sy ":room unban [user] [reason]"
266Unban a user from this room with an optional reason.
267.It Sy ":room kick [user] [reason]"
268Kick a user from this room with an optional reason.
269.It Sy ":room user name set [name]"
270Set your user display name for this room.
271.It Sy ":room user name unset"
272Delete your per-room user display name.
273.It Sy ":room user name show"
274Show the display name you currently have in this room.
275.El
276.Sh "SPACE COMMANDS"
277.Bl -tag -width Ds
278.It Sy ":space child set [room] [arguments]"
279Add a room to the currently focused space.
280.Dq ++suggested
281marks the room as a suggested child.
282.Dq ++order=[string]
283specifies a string by which children are lexicographically ordered.
284.It Sy ":space child remove"
285Remove the selected room from the currently focused space.
286.El
287.Sh "PROFILE COMMANDS"
288.Bl -tag -width Ds
289.It Sy ":self avatar set [mxc://...]"
290Set the avatar URL for your profile.
291.It Sy ":self avatar unset"
292Unset the avatar for your profile.
293.It Sy ":self avatar show"
294Show the current avatar URL for your profile.
295.It Sy ":self name set [nickname]"
296Set the display name for your profile.
297.It Sy ":self name unset"
298Unset the display name for your profile.
299.It Sy ":self name show"
300Show the current display name for your profile.
301.It Sy ":self timezone set [tz]"
302Set the timezone for your profile.
303.It Sy ":self timezone unset"
304Unset the timezone for your profile.
305.It Sy ":self timezone show"
306Show the current timezone for your profile.
307.El
308.Sh "WINDOW COMMANDS"
309.Bl -tag -width Ds
310.It Sy ":horizontal [cmd]"
311Change the behaviour of the given command to be horizontal.
312.It Sy ":leftabove [cmd]"
313Change the behaviour of the given command to open before the current window.
314.It Sy ":only" , Sy ":on"
315Quit all but one window in the current tab.
316.It Sy ":quit" , Sy ":q"
317Quit a window.
318.It Sy ":quitall" , Sy ":qa"
319Quit all windows in the current tab.
320.It Sy ":resize"
321Resize a window.
322.It Sy ":rightbelow [cmd]"
323Change the behaviour of the given command to open after the current window.
324.It Sy ":split" , Sy ":sp"
325Horizontally split a window.
326.It Sy ":vertical [cmd]"
327Change the layout of the following command to be vertical.
328.It Sy ":vsplit" , Sy ":vsp"
329Vertically split a window.
330.El
331
332.Sh "TAB COMMANDS"
333.Bl -tag -width Ds
334.It Sy ":tab [cmd]"
335Run a command that opens a window in a new tab.
336.It Sy ":tabclose" , Sy ":tabc"
337Close a tab.
338.It Sy ":tabedit [room]" , Sy ":tabe"
339Open a room in a new tab.
340.It Sy ":tabrewind" , Sy ":tabr"
341Go to the first tab.
342.It Sy ":tablast" , Sy ":tabl"
343Go to the last tab.
344.It Sy ":tabnext" , Sy ":tabn"
345Go to the next tab.
346.It Sy ":tabonly" , Sy ":tabo"
347Close all but one tab.
348.It Sy ":tabprevious" , Sy ":tabp"
349Go to the preview tab.
350.El
351
352.Sh "SLASH COMMANDS"
353.Bl -tag -width Ds
354.It Sy "/markdown" , Sy "/md"
355Interpret the message body as Markdown markup.
356This is the default behaviour.
357.It Sy "/html" , Sy "/h"
358Send the message body as literal HTML.
359.It Sy "/plaintext" , Sy "/plain" , Sy "/p"
360Do not interpret any markup in the message body and send it as it is.
361.It Sy "/me"
362Send an emote message.
363.It Sy "/confetti"
364Produces no effect in
365.Nm ,
366but will display confetti in Matrix clients that support doing so.
367.It Sy "/fireworks"
368Produces no effect in
369.Nm ,
370but will display fireworks in Matrix clients that support doing so.
371.It Sy "/hearts"
372Produces no effect in
373.Nm ,
374but will display floating hearts in Matrix clients that support doing so.
375.It Sy "/rainfall"
376Produces no effect in
377.Nm ,
378but will display rainfall in Matrix clients that support doing so.
379.It Sy "/snowfall"
380Produces no effect in
381.Nm ,
382but will display snowfall in Matrix clients that support doing so.
383.It Sy "/spaceinvaders"
384Produces no effect in
385.Nm ,
386but will display aliens from Space Invaders in Matrix clients that support doing so.
387.El
388
389.Sh "ENVIRONMENT"
390The behaviour of
391.Nm
392is affected by the following environment variables.
393.Bl -tag -width Ds
394.It Sy "ALL_PROXY, HTTP_PROXY, HTTPS_PROXY"
395Sets the proxy server to use.
396These names also work in lowercase.
397Example:
398.Dq export ALL_PROXY=socks5://localhost:9050 .
399.It Sy "RUST_LOG"
400Overwrites the value set by the
401.Sy log_level
402config value.
403The syntax is defined at
404.Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html
405
406.Sh EXAMPLES
407.Ss Example 1: Starting with a specific profile
408To start with a profile named
409.Sy personal
410instead of the
411.Sy default_profile
412value:
413.Bd -literal -offset indent
414$ iamb -P personal
415.Ed
416.Ss Example 2: Using an alternate configuration directory
417By default,
418.Nm
419will use the XDG directories, but you may sometimes want to store
420your configuration elsewhere.
421.Bd -literal -offset indent
422$ iamb -C ~/src/iamb-dev/dev-config/
423.Ed
424.Sh "REPORTING BUGS"
425Please report bugs in
426.Nm
427or its manual pages at
428.Lk https://github.com/ulyssa/iamb/issues
429.Sh "SEE ALSO"
430.Xr iamb 5
431.Pp
432Extended documentation is available online at
433.Lk https://iamb.chat