summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-10 01:26:35 +0200
committermathieui <mathieui@mathieui.net>2012-05-10 01:26:35 +0200
commit3dc5c5e5b597d96aef3f7f8886316a9c76849789 (patch)
tree304e336baed3a773c108e5ecb78619c993314039 /doc
parent70a724c1270c98607023d251787d1f727a4d07a3 (diff)
downloadpoezio-3dc5c5e5b597d96aef3f7f8886316a9c76849789.tar.gz
poezio-3dc5c5e5b597d96aef3f7f8886316a9c76849789.tar.bz2
poezio-3dc5c5e5b597d96aef3f7f8886316a9c76849789.tar.xz
poezio-3dc5c5e5b597d96aef3f7f8886316a9c76849789.zip
Add a way to execute a custom command with a custom key binding
(+doc)
Diffstat (limited to 'doc')
-rw-r--r--doc/en/keys.txt37
1 files changed, 35 insertions, 2 deletions
diff --git a/doc/en/keys.txt b/doc/en/keys.txt
index b823c619..c1b9b7fd 100644
--- a/doc/en/keys.txt
+++ b/doc/en/keys.txt
@@ -370,8 +370,27 @@ Status actions
Similar to /status xa.
-Example
-~~~~~~~
+Command execution
+~~~~~~~~~~~~~~~~~
+
+With that kind of actions, you can also execute arbitrary commands, with the
+ __exc__ keyword.
+
+
+You only have to prefix your command line with *\_exc\_*, and without the _/_.
+
+./kick Partauche added on Ctrl-w
+========================
+
+ ^W = _exc_kick Partauche
+
+========================
+
+That key binding will only work in the tabs defining the command (here, the
+MUC tab), and will show an error message in the others.
+
+Examples
+~~~~~~~~
.Config with user-defined actions
=================================
@@ -384,3 +403,17 @@ M-i = _show_important_room
M-p = _toggle_pane
-------------
=================================
+
+.Config with commands mapped
+=================================
+[source,conf]
+-------------
+[bindings]
+M-c = _exc_configure
+^Q = _exc_part RAGE QUIT
+^J = _exc_join
+^F = _exc_load figlet
+^R = _exc_load rainbow
+^S = _exc_say llollllllllllll
+-------------
+=================================