WeeChat dev news - Tag - barWeeChat development blog2024-01-22T17:53:19+01:00urn:md5:edd364dae4d94114a2ba146603903683DotclearScript hlpvitem.pyurn:md5:32a4cc83b52efd405abf00a9aab9491b2009-10-05T19:22:00+02:002019-11-04T22:04:01+01:00Sébastien Helleuscriptsbarhighlightprivatepython <p>A new script <a href="https://weechat.org/scripts/source/stable/hlpvitem.py">hlpvitem.py</a> 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.</p>
<p>You must add item in a bar, like status, with this command:</p>
<pre>/set weechat.bar.status.items</pre>
<p>then press "Tab" and complete string by adding for example (without quotes): ",[hlpv]"</p>
<p>Screenshot:
<a href="https://blog.weechat.org/public/weechat_hlpvitem_2009-10-05.png"><img src="https://blog.weechat.org/public/.weechat_hlpvitem_2009-10-05_m.jpg" alt="WeeChat hlpvitem" style="display:table; margin:0 auto;" title="hlpvitem.py" /></a></p>
<p>You can setup some options with /set:</p>
<ul>
<li><code>/set plugins.var.python.hlpvitem.show<sub>all</sub>buffers on/off</code> (default: off)</li>
<li><code>/set plugins.var.python.hlpvitem.buffer_number on/off</code> (default: on)</li>
<li><code>/set plugins.var.python.hlpvitem.buffer<sub>short</sub>name on/off</code> (default: on)</li>
<li><code>/set plugins.var.python.hlpvitem.highlight on/off</code> (default: on)</li>
<li><code>/set plugins.var.python.hlpvitem.private on/off</code> (default: on)</li>
<li><code>/set plugins.var.python.hlpvitem.string_highlight "string"</code> (default: empty)</li>
<li><code>/set plugins.var.python.hlpvitem.string_private "string"</code> (default: empty)</li>
<li><code>/set plugins.var.python.hlpvitem.string_delimiter "string"</code> (default: " > ")</li>
<li><code>/set plugins.var.python.hlpvitem.color<sub>string</sub>highlight color</code> (default: empty)</li>
<li><code>/set plugins.var.python.hlpvitem.color<sub>string</sub>private color</code> (default: empty)</li>
<li><code>/set plugins.var.python.hlpvitem.color<sub>buffer</sub>number color</code> (default: empty)</li>
<li><code>/set plugins.var.python.hlpvitem.color<sub>buffer</sub>name color</code> (default: "default")</li>
<li><code>/set plugins.var.python.hlpvitem.color_prefix color</code> (default: "white")</li>
<li><code>/set plugins.var.python.hlpvitem.color_delimiter color</code> (default: "cyan")</li>
<li><code>/set plugins.var.python.hlpvitem.color_message color</code> (default: "default")</li>
<li><code>/set plugins.var.python.hlpvitem.visible_seconds N</code> (default: 7)</li>
</ul>New bar filling optionsurn:md5:e5d62067c00dd4f6e1bdb1ce179d1e6a2008-12-17T23:02:00+01:002021-11-08T22:22:51+01:00Sébastien Helleucorebar <p>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.</p>
<p>Screenshot, with 2 nicklists, one on top, one on the right, with columns_vertical filling:</p>
<p><a href="https://blog.weechat.org/public/weechat_bar_filling_columns.png"><img src="https://blog.weechat.org/public/.weechat_bar_filling_columns_m.jpg" alt="weechat_bar_filling_columns.png" style="display:table; margin:0 auto;" title="weechat_bar_filling_columns.png, déc. 2008" /></a></p>New version of script buffers.plurn:md5:732cb9f22ce4c3df411a9f37eb9edbf32008-09-02T20:29:00+02:002021-11-08T22:23:24+01:00Sébastien Helleuscriptsbarperlscript <p>Script <a href="https://weechat.org/scripts/source/stable/buffers.pl">buffers.pl</a> 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:</p>
<p>Hide categories:</p>
<ul>
<li><code>/set plugins.var.perl.buffers.show_category off</code></li>
</ul>
<p>Change colors (replace "color" by your color, which may be "fg" or "fg,bg"):</p>
<ul>
<li><code>/set plugins.var.perl.buffers.color_number color</code></li>
<li><code>/set plugins.var.perl.buffers.color_slash color</code></li>
<li><code>/set plugins.var.perl.buffers.color_hotlist_low color</code></li>
<li><code>/set plugins.var.perl.buffers.color_hotlist_message color</code></li>
<li><code>/set plugins.var.perl.buffers.color_hotlist_private color</code></li>
<li><code>/set plugins.var.perl.buffers.color_hotlist_highlight color</code></li>
</ul>
<p>A screenshot is better than long speech:
<a href="https://blog.weechat.org/public/weechat_bar_buffers_2008-09-02.png"><img src="https://blog.weechat.org/public/.weechat_bar_buffers_2008-09-02_m.jpg" alt="weechat_bar_buffers_2008-09-02.png" style="display:table; margin:0 auto;" title="weechat_bar_buffers_2008-09-02.png, sep 2008" /></a></p>
<p><strong>Updated on 2017-05-13</strong>: the script is now obsolete, replaced by the builtin buflist plugin, introduced in <a href="https://blog.weechat.org/post/2017/05/13/Version-1.8">version 1.8</a>.</p>Barsurn:md5:957df0b6614087c63284ecf36c8abd632008-03-15T17:09:00+01:002021-03-13T01:40:03+01:00Sébastien Helleucorebarscript <p>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).
<br />
Plugin and script API is now ready for using these bars. Following screenshot is a demo of scripts <a href="https://weechat.org/scripts/source/stable/buffers.pl">buffers.pl</a> and uptime.pl:</p>
<p><strong>Updated on 2008-10-12</strong>: new bars are now used: title, nicklist, status, input.</p>
<p><a href="https://blog.weechat.org/public/weechat_bars_buffers_uptime.png"><img src="https://blog.weechat.org/public/.weechat_bars_buffers_uptime_m.jpg" alt="weechat_bars_buffers_uptime.png" style="display:table; margin:0 auto;" title="weechat_bars_buffers_uptime.png, aoû 2008" /></a></p>