Implement alt-h. Fixes #832
This commit is contained in:
parent
f4669f37ee
commit
1ba1698703
2 changed files with 10 additions and 0 deletions
|
@ -151,6 +151,7 @@
|
|||
<li><kbd>ALT-a</kbd>: Focus on next buffer with activity</li>
|
||||
<li><kbd>ALT-<</kbd>: Switch to previous active buffer</li>
|
||||
<li><kbd>ALT-g</kbd>: Focus on buffer list filter</li>
|
||||
<li><kbd>ALT-h</kbd>: Clear unread counters in every buffer (locally)</li>
|
||||
<li><kbd>Esc-Esc</kbd>: Disconnect (double-tap)</li>
|
||||
<li>Arrow keys: Navigate history, or navigate quick search buffer results.</li>
|
||||
<li><kbd>Tab</kbd>: Complete nick</li>
|
||||
|
|
|
@ -357,6 +357,15 @@ weechat.directive('inputBar', function() {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Alt-h -> Toggle all as read
|
||||
if ($event.altKey && !$event.ctrlKey && key === "KeyH" ) {
|
||||
var buffers = models.getBuffers();
|
||||
_.each(buffers, function(buffer) {
|
||||
buffer.unread = 0;
|
||||
buffer.notification = 0;
|
||||
});
|
||||
}
|
||||
|
||||
var caretPos;
|
||||
|
||||
// Arrow up -> go up in history
|
||||
|
|
Loading…
Reference in a new issue