Weechat
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
- Scripts
- weeget.py - script manager
- autoconnect - remembers servers+channels joined
- buffers.pl - lists buffers in sidebar
- /set weechat.bar.buffers.position right
- /set buffers.look.sort name (window number order doesn't follow!)
- urlbuf.py - url catcher buffer
- whois_on_query.py - as title
- go.py - jump to buffer
- sort_buffers.pl - as title. doesn't care about server.
- listsort.pl - better than nowt
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!")