docs/iamb.1
321 lines · 9160 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 ":welcome"
69View the startup Welcome window.
70.El
71
72.Sh "E2EE COMMANDS"
73.Bl -tag -width Ds
74.It Sy ":keys export [path] [passphrase]"
75Export and encrypt keys to
76.Pa path .
77.It Sy ":keys import [path] [passphrase]"
78Import and decrypt keys from
79.Pa path .
80.It Sy ":verify"
81View a list of ongoing E2EE verifications.
82.It Sy ":verify accept [key]"
83Accept a verification request.
84.It Sy ":verify cancel [key]"
85Cancel an in-progress verification.
86.It Sy ":verify confirm [key]"
87Confirm an in-progress verification.
88.It Sy ":verify mismatch [key]"
89Reject an in-progress verification due to mismatched Emoji.
90.It Sy ":verify request [user id]"
91Request a new verification with the specified user.
92.El
93
94.Sh "MESSAGE COMMANDS"
95.Bl -tag -width Ds
96.It Sy ":download [path]"
97Download an attachment from the selected message and save it to the optional path.
98.It Sy ":open [path]"
99Download and then open an attachment, or open a link in a message.
100.It Sy ":edit"
101Edit the selected message.
102.It Sy ":editor"
103Open an external
104.Ev $EDITOR
105to compose a message.
106.It Sy ":react [shortcode]"
107React to the selected message with an Emoji.
108.It Sy ":unreact [shortcode]"
109Remove your reaction from the selected message.
110When no arguments are given, remove all of your reactions from the message.
111.It Sy ":redact [reason]"
112Redact the selected message with the optional reason.
113.It Sy ":reply"
114Reply to the selected message.
115.It Sy ":cancel"
116Cancel the currently drafted message including replies.
117.It Sy ":upload [path]"
118Upload an attachment and send it to the currently selected room.
119.El
120
121.Sh "ROOM COMMANDS"
122.Bl -tag -width Ds
123.It Sy ":create [arguments]"
124Create a new room. Arguments can be
125.Dq ++alias=[alias] ,
126.Dq ++public ,
127.Dq ++space ,
128and
129.Dq ++encrypted .
130.It Sy ":invite accept"
131Accept an invitation to the currently focused room.
132.It Sy ":invite reject"
133Reject an invitation to the currently focused room.
134.It Sy ":invite send [user]"
135Send an invitation to a user to join the currently focused room.
136.It Sy ":join [room]"
137Join a room or open it if you are already joined.
138.It Sy ":leave"
139Leave the currently focused room.
140.It Sy ":members"
141View a list of members of the currently focused room.
142.It Sy ":room name set [name]"
143Set the name of the currently focused room.
144.It Sy ":room name unset"
145Unset the name of the currently focused room.
146.It Sy ":room dm set"
147Mark the currently focused room as a direct message.
148.It Sy ":room dm unset"
149Mark the currently focused room as a normal room.
150.It Sy ":room notify set [level]"
151Set a notification level for the currently focused room.
152Valid levels are
153.Dq mute ,
154.Dq mentions ,
155.Dq keywords ,
156and
157.Dq all .
158Note that
159.Dq mentions
160and
161.Dq keywords
162are aliases for the same behaviour.
163.It Sy ":room notify unset"
164Unset any room-level notification configuration.
165.It Sy ":room notify show"
166Show the current room-level notification configuration.
167If the room is using the account-level default, then this will print
168.Dq default .
169.It Sy ":room tag set [tag]"
170Add a tag to the currently focused room.
171.It Sy ":room tag unset [tag]"
172Remove a tag from the currently focused room.
173.It Sy ":room topic set [topic]"
174Set the topic of the currently focused room.
175.It Sy ":room topic unset"
176Unset the topic of the currently focused room.
177.It Sy ":room topic show"
178Show the topic of the currently focused room.
179.It Sy ":room alias set [alias]"
180Create and point the given alias to the room.
181.It Sy ":room alias unset [alias]"
182Delete the provided alias from the room's alternative alias list.
183.It Sy ":room alias show"
184Show alternative aliases to the room, if any are set.
185.It Sy ":room id show"
186Show the Matrix identifier for the room.
187.It Sy ":room canon set [alias]"
188Set the room's canonical alias to the one provided, and make the previous one an alternative alias.
189.It Sy ":room canon unset [alias]"
190Delete the room's canonical alias.
191.It Sy ":room canon show"
192Show the room's canonical alias, if any is set.
193.It Sy ":room ban [user] [reason]"
194Ban a user from this room with an optional reason.
195.It Sy ":room unban [user] [reason]"
196Unban a user from this room with an optional reason.
197.It Sy ":room kick [user] [reason]"
198Kick a user from this room with an optional reason.
199.El
200
201.Sh "SPACE COMMANDS"
202.Bl -tag -width Ds
203.It Sy ":space child set [room_id] [arguments]"
204Add a room to the currently focused space.
205.Dq ++suggested
206marks the room as a suggested child.
207.Dq ++order=[string]
208specifies a string by which children are lexicographically ordered.
209.It Sy ":space child remove"
210Remove the selected room from the currently focused space.
211.El
212
213.Sh "WINDOW COMMANDS"
214.Bl -tag -width Ds
215.It Sy ":horizontal [cmd]"
216Change the behaviour of the given command to be horizontal.
217.It Sy ":leftabove [cmd]"
218Change the behaviour of the given command to open before the current window.
219.It Sy ":only" , Sy ":on"
220Quit all but one window in the current tab.
221.It Sy ":quit" , Sy ":q"
222Quit a window.
223.It Sy ":quitall" , Sy ":qa"
224Quit all windows in the current tab.
225.It Sy ":resize"
226Resize a window.
227.It Sy ":rightbelow [cmd]"
228Change the behaviour of the given command to open after the current window.
229.It Sy ":split" , Sy ":sp"
230Horizontally split a window.
231.It Sy ":vertical [cmd]"
232Change the layout of the following command to be vertical.
233.It Sy ":vsplit" , Sy ":vsp"
234Vertically split a window.
235.El
236
237.Sh "TAB COMMANDS"
238.Bl -tag -width Ds
239.It Sy ":tab [cmd]"
240Run a command that opens a window in a new tab.
241.It Sy ":tabclose" , Sy ":tabc"
242Close a tab.
243.It Sy ":tabedit [room]" , Sy ":tabe"
244Open a room in a new tab.
245.It Sy ":tabrewind" , Sy ":tabr"
246Go to the first tab.
247.It Sy ":tablast" , Sy ":tabl"
248Go to the last tab.
249.It Sy ":tabnext" , Sy ":tabn"
250Go to the next tab.
251.It Sy ":tabonly" , Sy ":tabo"
252Close all but one tab.
253.It Sy ":tabprevious" , Sy ":tabp"
254Go to the preview tab.
255.El
256
257.Sh "SLASH COMMANDS"
258.Bl -tag -width Ds
259.It Sy "/markdown" , Sy "/md"
260Interpret the message body as Markdown markup.
261This is the default behaviour.
262.It Sy "/html" , Sy "/h"
263Send the message body as literal HTML.
264.It Sy "/plaintext" , Sy "/plain" , Sy "/p"
265Do not interpret any markup in the message body and send it as it is.
266.It Sy "/me"
267Send an emote message.
268.It Sy "/confetti"
269Produces no effect in
270.Nm ,
271but will display confetti in Matrix clients that support doing so.
272.It Sy "/fireworks"
273Produces no effect in
274.Nm ,
275but will display fireworks in Matrix clients that support doing so.
276.It Sy "/hearts"
277Produces no effect in
278.Nm ,
279but will display floating hearts in Matrix clients that support doing so.
280.It Sy "/rainfall"
281Produces no effect in
282.Nm ,
283but will display rainfall in Matrix clients that support doing so.
284.It Sy "/snowfall"
285Produces no effect in
286.Nm ,
287but will display snowfall in Matrix clients that support doing so.
288.It Sy "/spaceinvaders"
289Produces no effect in
290.Nm ,
291but will display aliens from Space Invaders in Matrix clients that support doing so.
292.El
293
294.Sh EXAMPLES
295.Ss Example 1: Starting with a specific profile
296To start with a profile named
297.Sy personal
298instead of the
299.Sy default_profile
300value:
301.Bd -literal -offset indent
302$ iamb -P personal
303.Ed
304.Ss Example 2: Using an alternate configuration directory
305By default,
306.Nm
307will use the XDG directories, but you may sometimes want to store
308your configuration elsewhere.
309.Bd -literal -offset indent
310$ iamb -C ~/src/iamb-dev/dev-config/
311.Ed
312.Sh "REPORTING BUGS"
313Please report bugs in
314.Nm
315or its manual pages at
316.Lk https://github.com/ulyssa/iamb/issues
317.Sh "SEE ALSO"
318.Xr iamb 5
319.Pp
320Extended documentation is available online at
321.Lk https://iamb.chat