Weechat

From Things and Stuff Wiki
Revision as of 22:30, 28 January 2012 by Milk (talk | contribs) (→‎Scripts)
Jump to navigation Jump to search


Commands

/server add oftc irc.oftc.net/6667
/connect oftc
/set irc.look.server_buffer independent
/input jump_smart - jump to next buffer with activity
/input hotlist_clear - clear activity
/key bind meta2-18~ /bar scroll buffers * -30% - bind F7 to buffers.pl up
/key bind meta2-19~ /bar scroll buffers * +30% - bind F8 to buffers.pl down
Ctrl-r - Search buffer (enter to esc.)

alt-k [key] - display key and binding

Docs

Scripts

Scripting

http://www.weechat.org/files/doc/stable/weechat_plugin_api.en.html#_weechat_config_color_default
weechat.color.chat_buffer [1]
python:
 you have to import weechat
 functions print* are called prnt* in python (because print is reserved keyword)
 functions are called with weechat.xxx(arg1, arg2, ...)
weechat.register(name, author, version, license, description, shutdown_function, charset) [2]
import weechat
weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Test script", "", "")
weechat.prnt("", "Hello, from python script!")