WeeChat DevCenter

Tag - bar

Entries feed

Monday, October 5 2009

Script hlpvitem.py

A new script hlpvitem.py is now available. It displays item in a bar (like status) with highlight or private message, from an hidden buffer. So you will see content of message before switching to that buffer.

You must add item in a bar, like status, with this command:

/set weechat.bar.status.items

then press "Tab" and complete string by adding for example (without quotes): ",[hlpv]"

Screenshot: WeeChat hlpvitem

You can setup some options with /set:

  • /set plugins.var.python.hlpvitem.showallbuffers on/off (default: off)
  • /set plugins.var.python.hlpvitem.buffer_number on/off (default: on)
  • /set plugins.var.python.hlpvitem.buffershortname on/off (default: on)
  • /set plugins.var.python.hlpvitem.highlight on/off (default: on)
  • /set plugins.var.python.hlpvitem.private on/off (default: on)
  • /set plugins.var.python.hlpvitem.string_highlight "string" (default: empty)
  • /set plugins.var.python.hlpvitem.string_private "string" (default: empty)
  • /set plugins.var.python.hlpvitem.string_delimiter "string" (default: " > ")
  • /set plugins.var.python.hlpvitem.colorstringhighlight color (default: empty)
  • /set plugins.var.python.hlpvitem.colorstringprivate color (default: empty)
  • /set plugins.var.python.hlpvitem.colorbuffernumber color (default: empty)
  • /set plugins.var.python.hlpvitem.colorbuffername color (default: "default")
  • /set plugins.var.python.hlpvitem.color_prefix color (default: "white")
  • /set plugins.var.python.hlpvitem.color_delimiter color (default: "cyan")
  • /set plugins.var.python.hlpvitem.color_message color (default: "default")
  • /set plugins.var.python.hlpvitem.visible_seconds N (default: 7)

Wednesday, December 17 2008

New bar filling options

Two new bar filling options have been added: columns_horizontal and columns_vertical. It is used to display bar items in columns, with vertical or horizontal sort.

Screenshot, with 2 nicklists, one on top, one on the right, with columns_vertical filling:

weechat_bar_filling_columns.png

Tuesday, September 2 2008

New version of script buffers.pl

Script buffers.pl has been improved. Now you can hide categories, and there's color for lines according to hotlist (activity on buffers). There's new config options, you can set with /set command:

Hide categories:

  • /set plugins.var.perl.buffers.show_category off

Change colors (replace "color" by your color, which may be "fg" or "fg,bg"):

  • /set plugins.var.perl.buffers.color_number color
  • /set plugins.var.perl.buffers.color_slash color
  • /set plugins.var.perl.buffers.color_hotlist_low color
  • /set plugins.var.perl.buffers.color_hotlist_message color
  • /set plugins.var.perl.buffers.color_hotlist_private color
  • /set plugins.var.perl.buffers.color_hotlist_highlight color

A screenshot is better than long speech: weechat_bar_buffers_2008-09-02.png

Updated on 2017-05-13: the script is now obsolete, replaced by the builtin buflist plugin, introduced in version 1.8.

Saturday, March 15 2008

Bars

Bars have been added to WeeChat. They are used to display informations around chat area. In near future, some existing items will become real bars (like title, nicklist, status, input).
Plugin and script API is now ready for using these bars. Following screenshot is a demo of scripts buffers.pl and uptime.pl:

Updated on 2008-10-12: new bars are now used: title, nicklist, status, input.

weechat_bars_buffers_uptime.png