File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ Revision history for perl distribution Convos
2
2
3
3
5.25 Not Released
4
4
- Entering "+" in the quick search bar will show conversation with unread messages
5
+ - Entering "+#" in the quick search bar will show channels with unread messages
6
+ - Entering "+@" in the quick search bar will show private conversation with unread messages
5
7
6
8
5.24 2021-02-11T09:30:00+0900
7
9
- Will not show participants in sidebar if already visible on the right side
Original file line number Diff line number Diff line change @@ -54,7 +54,12 @@ function filterNav() {
54
54
55
55
// Show and hide navigation links
56
56
for (let p = 0 ; p < prefix .length ; p++ ) {
57
- const filterRe = filter == ' +' ? new RegExp (/ [1-9 ] \d * \s * $ / ) : new RegExp (prefix[p] + regexpEscape (filter), ' i' );
57
+ const filterRe
58
+ = filter == ' +' ? new RegExp (/ [1-9 ] \d * \s * $ / )
59
+ : filter == ' +@' ? new RegExp (/ ^ \s * \w. * [1-9 ] \d * \s * $ / )
60
+ : filter == ' +#' ? new RegExp (/ ^ \s * #. * [1-9 ] \d * \s * $ / )
61
+ : new RegExp (prefix[p] + regexpEscape (filter), ' i' );
62
+
58
63
const seen = {};
59
64
q (navEl, ' a' , (aEl , i ) => {
60
65
const aClassList = aEl .classList ;
Original file line number Diff line number Diff line change @@ -21,12 +21,17 @@ const changelogUrl = 'https://github.com/Nordaaker/convos/blob/' + settings('ver
21
21
{@html $lmd (' More information can also be found on https://convos.chat.' )}
22
22
</p >
23
23
24
- <h2 id ="shortcuts" >{$l (' Shortcuts' )}</h2 >
24
+ <h2 id ="quick-search" >{$l (' Quick search' )}</h2 >
25
+ <p >{$l (' Pressing `shift+enter` will shift focus between chat input and search in sidebar.' )}</p >
25
26
<dl >
26
- <dt >{$l (' shift+enter' )}</dt >
27
- <dd >{$l (' Shift focus between chat input and search in sidebar.' )}</dd >
28
- <dt >{$l (' Open conversation or connection settings' )}</dt >
29
- <dd >{$l (' Clicking on the icon next to the conversation name will take you to settings.' )}</dd >
27
+ <dt >+</dt >
28
+ <dd >{$l (' Filter conversations with unread messages.' )}</dd >
29
+ <dt >+@</dt >
30
+ <dd >{$l (' Filter private conversations with unread messages.' )}</dd >
31
+ <dt >+#</dt >
32
+ <dd >{$l (' Filter channels with unread messages.' )}</dd >
33
+ <dt >{$l (' Any other combination' )}</dt >
34
+ <dd >{$l (' Filter channels, private conversations or search for a string.' )}</dd >
30
35
</dl >
31
36
32
37
<h2 id ="autocomplete" >{$l (' Autocomplete' )}</h2 >
You can’t perform that action at this time.
0 commit comments