docs/iamb.1

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