docs/iamb.1

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