Difference between revisions of "Weechat"

From Things and Stuff Wiki
Jump to navigation Jump to search
(Blanked the page)
 
Line 1: Line 1:
{{techy}}
 
  
=== 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 ===
 
* [http://www.weechat.org/files/doc/stable/weechat_quickstart.en.html Quickstart]
 
* [http://www.weechat.org/files/doc/stable/weechat_user.en.html Users guide]
 
 
* http://dev.weechat.org/post/2008/10/25/Smart-IRC-join-part-quit-message-filter
 
 
=== Scripts ===
 
* [http://www.weechat.org/scripts/ Scripts]
 
** [http://www.weechat.org/scripts/source/stable/weeget.py.html/ weeget.py] - script manager
 
** [http://www.weechat.org/scripts/source/stable/autoconnect.py.html autoconnect] - remembers servers+channels joined
 
** [http://www.weechat.org/scripts/source/stable/buffers.pl.html/ buffers.pl] - lists buffers in sidebar
 
*** /set weechat.bar.buffers.position right
 
*** /set buffers.look.sort name (window number order doesn't follow!)
 
** [http://www.weechat.org/scripts/source/stable/urlbuf.py.html/ urlbuf.py] - url catcher buffer
 
** [http://www.weechat.org/scripts/source/stable/whois_on_query.py.html/ whois_on_query.py] - as title
 
** [http://www.weechat.org/scripts/source/stable/go.py.html/ go.py] - jump to buffer
 
** [http://www.weechat.org/scripts/source/stable/sort_buffers.pl.html/ sort_buffers.pl] - as title.
 
** [http://www.weechat.org/scripts/source/stable/listsort.pl.html/ 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 [http://www.weechat.org/files/doc/stable/weechat_user.en.html#command_line_colors]
 
 
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) [http://www.weechat.org/files/doc/stable/weechat_scripting.en.html#register_function]
 
 
import weechat
 
weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Test script", "", "")
 
weechat.prnt("", "Hello, from python script!")
 

Latest revision as of 20:20, 21 June 2012