From 3dc5c5e5b597d96aef3f7f8886316a9c76849789 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 10 May 2012 01:26:35 +0200 Subject: Add a way to execute a custom command with a custom key binding (+doc) --- doc/en/keys.txt | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'doc') 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 +------------- +================================= -- cgit v1.2.3