docs/iamb.1

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