This introduces ability to pin buffers using localvar storage in
WeeChat. At a later stage some UI should be introduced for this, like
discussed in #604 .
locastorage-fallback
Tor Hveem9 years agocommitted byLorenz Hübschle-Schneider
<li>Arrow keys: Navigate history, or navigate quick search buffer results.</li>
<li><kbd>Tab</kbd>: Complete nick</li>
<li><kbd>Tab</kbd>: Complete nick</li>
<li>The following readline/emacs style keybindings can be enabled with a setting: <spantitle="Move cursor to beginning of line"><kbd>Ctrl-a</kbd></span>, <spantitle="Move cursor to te end of the line"><kbd>Ctrl-e</kbd></span>, <spantitle="Delete from cursor to beginning of the line"><kbd>Ctrl-u</kbd></span>, <spantitle="Delete from cursor to the end of the line"><kbd>Ctrl-k</kbd></span>, <spantitle="Delete from cursor to previous space"><kbd>Ctrl-w</kbd></span></li>
<li>The following readline/emacs style keybindings can be enabled with a setting: <spantitle="Move cursor to beginning of line"><kbd>Ctrl-a</kbd></span>, <spantitle="Move cursor to te end of the line"><kbd>Ctrl-e</kbd></span>, <spantitle="Delete from cursor to beginning of the line"><kbd>Ctrl-u</kbd></span>, <spantitle="Delete from cursor to the end of the line"><kbd>Ctrl-k</kbd></span>, <spantitle="Delete from cursor to previous space"><kbd>Ctrl-w</kbd></span></li>
</ul>
</ul>
<h3>Pinning buffers</h3>
<p>
The option "Only show buffers with unread messages" is useful when you have a lot of buffers and cant meaningfully look at all of them at the same time. However, often you have a select few buffers that you use more frequently and would like to have displayed permanently.
</p>
<p>
To pin a buffer, type <code>/buffer set localvar_set_pinned true</code>. <strong>Note</strong>: Local variables on buffers are not persisted across WeeChat restarts, so either use script <code>buffer_autoset.py</code> to automatically apply that upon buffer creation or use a trigger if you want automatic repinning when buffer gets recreated. To unpin you can use the same command and set anything other than true.
</p>
<p>
Helpful trigger for automatically repin buffer: <code>/trigger add autopin signal "buffer_opened" "${buffer[${tg_signal_data}].full_name} =~ irc.freenode.#weechat" "" "/command -buffer ${buffer[${tg_signal_data}].full_name} * /buffer set localvar_set_pinned true"</code>