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