docs/iamb.1

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