docs/iamb.1

284 lines · 7841 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 canon set [alias]"
163Set the room's canonical alias to the one provided, and make the previous one an alternative alias.
164.It Sy ":room canon unset [alias]"
165Delete the room's canonical alias.
166.It Sy ":room canon show"
167Show the room's canonical alias, if any is set.
168.It Sy ":room ban [user] [reason]"
169Ban a user from this room with an optional reason.
170.It Sy ":room unban [user] [reason]"
171Unban a user from this room with an optional reason.
172.It Sy ":room kick [user] [reason]"
173Kick a user from this room with an optional reason.
174.El
175
176.Sh "WINDOW COMMANDS"
177.Bl -tag -width Ds
178.It Sy ":horizontal [cmd]"
179Change the behaviour of the given command to be horizontal.
180.It Sy ":leftabove [cmd]"
181Change the behaviour of the given command to open before the current window.
182.It Sy ":only" , Sy ":on"
183Quit all but one window in the current tab.
184.It Sy ":quit" , Sy ":q"
185Quit a window.
186.It Sy ":quitall" , Sy ":qa"
187Quit all windows in the current tab.
188.It Sy ":resize"
189Resize a window.
190.It Sy ":rightbelow [cmd]"
191Change the behaviour of the given command to open after the current window.
192.It Sy ":split" , Sy ":sp"
193Horizontally split a window.
194.It Sy ":vertical [cmd]"
195Change the layout of the following command to be vertical.
196.It Sy ":vsplit" , Sy ":vsp"
197Vertically split a window.
198.El
199
200.Sh "TAB COMMANDS"
201.Bl -tag -width Ds
202.It Sy ":tab [cmd]"
203Run a command that opens a window in a new tab.
204.It Sy ":tabclose" , Sy ":tabc"
205Close a tab.
206.It Sy ":tabedit [room]" , Sy ":tabe"
207Open a room in a new tab.
208.It Sy ":tabrewind" , Sy ":tabr"
209Go to the first tab.
210.It Sy ":tablast" , Sy ":tabl"
211Go to the last tab.
212.It Sy ":tabnext" , Sy ":tabn"
213Go to the next tab.
214.It Sy ":tabonly" , Sy ":tabo"
215Close all but one tab.
216.It Sy ":tabprevious" , Sy ":tabp"
217Go to the preview tab.
218.El
219
220.Sh "SLASH COMMANDS"
221.Bl -tag -width Ds
222.It Sy "/markdown" , Sy "/md"
223Interpret the message body as Markdown markup.
224This is the default behaviour.
225.It Sy "/html" , Sy "/h"
226Send the message body as literal HTML.
227.It Sy "/plaintext" , Sy "/plain" , Sy "/p"
228Do not interpret any markup in the message body and send it as it is.
229.It Sy "/me"
230Send an emote message.
231.It Sy "/confetti"
232Produces no effect in
233.Nm ,
234but will display confetti in Matrix clients that support doing so.
235.It Sy "/fireworks"
236Produces no effect in
237.Nm ,
238but will display fireworks in Matrix clients that support doing so.
239.It Sy "/hearts"
240Produces no effect in
241.Nm ,
242but will display floating hearts in Matrix clients that support doing so.
243.It Sy "/rainfall"
244Produces no effect in
245.Nm ,
246but will display rainfall in Matrix clients that support doing so.
247.It Sy "/snowfall"
248Produces no effect in
249.Nm ,
250but will display snowfall in Matrix clients that support doing so.
251.It Sy "/spaceinvaders"
252Produces no effect in
253.Nm ,
254but will display aliens from Space Invaders in Matrix clients that support doing so.
255.El
256
257.Sh EXAMPLES
258.Ss Example 1: Starting with a specific profile
259To start with a profile named
260.Sy personal
261instead of the
262.Sy default_profile
263value:
264.Bd -literal -offset indent
265$ iamb -P personal
266.Ed
267.Ss Example 2: Using an alternate configuration directory
268By default,
269.Nm
270will use the XDG directories, but you may sometimes want to store
271your configuration elsewhere.
272.Bd -literal -offset indent
273$ iamb -C ~/src/iamb-dev/dev-config/
274.Ed
275.Sh "REPORTING BUGS"
276Please report bugs in
277.Nm
278or its manual pages at
279.Lk https://github.com/ulyssa/iamb/issues
280.Sh "SEE ALSO"
281.Xr iamb 5
282.Pp
283Extended documentation is available online at
284.Lk https://iamb.chat