WeeChat dev news - Tag - highlightWeeChat development blog2024-01-22T17:53:19+01:00urn:md5:edd364dae4d94114a2ba146603903683DotclearHighlight with regex in specific buffersurn:md5:268d9763dba0ab35a995affff47516542011-06-15T20:00:00+02:002017-05-19T22:26:26+02:00Sébastien Helleucorebufferhighlightregex <p>A local variable "highlight_regex" has been added in buffers.</p>
<p>It is recommended to use script <a href="https://weechat.org/scripts/source/stable/buffer_autoset.py">buffer_autoset.py</a> to set it, so that it's saved and set at any time when buffer is created.</p>
<p>However, it's still possible to set it manually (for testing) with command: <code>/buffer set highlight_regex XXX</code>.</p>
<p>For example, to highlight all messages on server freenode, channel #test:</p>
<pre>/autosetbuffer add irc.freenode.#test highlight_regex .*</pre>Disable highlights from some nicksurn:md5:9cc9bce958847f2f5579613cbd081b9a2010-10-11T18:30:00+02:002021-03-13T01:36:47+01:00Sébastien Helleucorehighlightirc <p>It is now possible to disable highlights from some nicks, per buffer, or per group of buffers (like IRC servers).</p>
<p>A new buffer property "no<sub>highlight</sub>nicks" has been added. It can be set easily with script <a href="https://weechat.org/scripts/source/stable/buffer_autoset.py">buffer_autoset.py</a>, see <code>/help autosetbuffer</code> for example.</p>
<p>If you have already opened buffer, then script option will not apply immediately to buffers. Then you can use <code>/buffer</code> command to manually set this property on a buffer, for example, to disable highlights from "joe" and "mike" on current buffer:</p>
<pre>/buffer set no<sub>highlight</sub>nicks_add joe,mike</pre>
<p><strong>Updated on 2010-12-02</strong>: this option has been replaced by "hotlist<sub>max</sub>level_nicks", see <a href="https://blog.weechat.org/blog/post/2010/12/02/Max-hotlist-level-for-some-nicks">Max hotlist level for some nicks</a>.</p>Script 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>