[Tkabber-dev] r145 - trunk/plugins/quotelastmsg

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sun Oct 12 20:35:49 MSD 2008

Author: kostix
Date: 2008-10-12 20:35:49 +0400 (Sun, 12 Oct 2008)
New Revision: 145

quotelastmsg/README: Provided extensive information on the plugin.

Modified: trunk/plugins/quotelastmsg/README
--- trunk/plugins/quotelastmsg/README	2008-10-12 15:01:08 UTC (rev 144)
+++ trunk/plugins/quotelastmsg/README	2008-10-12 16:35:49 UTC (rev 145)
@@ -19,10 +19,53 @@
 II. Configuration
+You can configure two parameters affecting the operation of this
+plugin: actions triggering the quotation of the last message
+and the format string used to decorate the message being quoted.
-III. References
+Message quoting action is bound to a Tk virtual event named
+<<QuoteLastMessage>>. By default, it's bound to <Alt-q> (also to
+<Meta-q> to accound for certain Unix systems).
+To change the binding you will have to add appropriate
+command(s) to the Tkabber configuration file. For instance, to
+unbind this action from <Alt-q> and bind it to <Ctrl-Shift-m>
+write this into your condig.tcl:
+event delete <<QuoteLastMessage>> <Alt-q>
+event delete <<QuoteLastMessage>> <Meta-q>
+event add    <<QuoteLastMessage>> <Control-Shift-m>
+Full details about the "event" command can be found in [1].
+Note that you can use any event specifier, not just keyboard
+shortcuts. Refer to [2] for full details.
+The format string used to decorate the message being quoted can
+be changed using the Customize interface in the "Plugins ->
+Quote Last Message" group of settings (also reachable as
+"Chat -> Quote Last Message").
+The actual setting is named
+and it defaults to the string ">> %m".
+In the format string the format specifier "%m" is substituted by
+the whole message as seen in the conversation log window, and
+the specifier "%%" is replaced by a single character "%".
+III. Bugs and limitations
+* There's currently no way to separately refer to the parts of
+  the message being quoted (such as its timestamp, poster's
+  nickname and the message body) in the format string.
+* It's impossible to embed "special chanracters" into the format
+  string (such as \n or \t).
+IV. References
 1. http://www.tcl.tk/man/tcl8.5/TkCmd/event.htm
+2. http://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm

More information about the Tkabber-dev mailing list