docs/iamb.1

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