Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

search reference: Reorder operators.

Anna Larsson305fb62fb0f0
diff --git a/static/templates/search_operators.hbs b/static/templates/search_operators.hbs
index 778de400af7..2f58722346d 100644
--- a/static/templates/search_operators.hbs
+++ b/static/templates/search_operators.hbs
@@ -9,6 +9,15 @@
</tr>
</thead>
<tbody>
+ <tr>
+ <td class="operator"><span class="operator_value">keyword</span></td>
+ <td class="definition">
+ {{#tr}}
+ Search for <z-value></z-value> in the topic or message content.
+ {{#*inline "z-value"}}<span class="operator_value">keyword</span>{{/inline}}
+ {{/tr}}
+ </td>
+ </tr>
<tr>
<td class="operator">stream:<span class="operator_value">stream</span></td>
<td class="definition">
@@ -27,6 +36,12 @@
{{/tr}}
</td>
</tr>
+ <tr>
+ <td class="operator">is:private</td>
+ <td class="definition">
+ {{t 'Narrow to private messages.'}}
+ </td>
+ </tr>
<tr>
<td class="operator">pm-with:<span class="operator_value">user</span></td>
<td class="definition">
@@ -45,6 +60,12 @@
{{/tr}}
</td>
</tr>
+ <tr>
+ <td class="operator">streams:public</td>
+ <td class="definition">
+ {{t 'Search all public streams in the organization.'}}
+ </td>
+ </tr>
<tr>
<td class="operator">sender:<span class="operator_value">user</span></td>
<td class="definition">
@@ -61,27 +82,21 @@
</td>
</tr>
<tr>
- <td class="operator">near:<span class="operator_value">id</span></td>
+ <td class="operator">has:link</td>
<td class="definition">
- {{#tr}}
- Center the view around message ID <z-value></z-value>.
- {{#*inline "z-value"}}<span class="operator_value">id</span>{{/inline}}
- {{/tr}}
+ {{t 'Narrow to messages containing links.'}}
</td>
</tr>
<tr>
- <td class="operator">id:<span class="operator_value">id</span></td>
+ <td class="operator">has:attachment</td>
<td class="definition">
- {{#tr}}
- Narrow to just message ID <z-value></z-value>.
- {{#*inline "z-value"}}<span class="operator_value">id</span>{{/inline}}
- {{/tr}}
+ {{t 'Narrow to messages containing uploads.'}}
</td>
</tr>
<tr>
- <td class="operator">streams:public</td>
+ <td class="operator">has:image</td>
<td class="definition">
- {{t 'Search all public streams in the organization.'}}
+ {{t 'Narrow to messages containing images.'}}
</td>
</tr>
<tr>
@@ -96,24 +111,12 @@
{{t 'Narrow to messages that mention you.'}}
</td>
</tr>
- <tr>
- <td class="operator">is:private</td>
- <td class="definition">
- {{t 'Narrow to private messages.'}}
- </td>
- </tr>
<tr>
<td class="operator">is:starred</td>
<td class="definition">
{{t 'Narrow to starred messages.'}}
</td>
</tr>
- <tr>
- <td class="operator">is:unread</td>
- <td class="definition">
- {{t 'Narrow to unread messages.'}}
- </td>
- </tr>
<tr>
<td class="operator">is:resolved</td>
<td class="definition">
@@ -121,29 +124,26 @@
</td>
</tr>
<tr>
- <td class="operator">has:link</td>
- <td class="definition">
- {{t 'Narrow to messages containing links.'}}
- </td>
- </tr>
- <tr>
- <td class="operator">has:image</td>
+ <td class="operator">is:unread</td>
<td class="definition">
- {{t 'Narrow to messages containing images.'}}
+ {{t 'Narrow to unread messages.'}}
</td>
</tr>
<tr>
- <td class="operator">has:attachment</td>
+ <td class="operator">near:<span class="operator_value">id</span></td>
<td class="definition">
- {{t 'Narrow to messages containing uploads.'}}
+ {{#tr}}
+ Center the view around message ID <z-value></z-value>.
+ {{#*inline "z-value"}}<span class="operator_value">id</span>{{/inline}}
+ {{/tr}}
</td>
</tr>
<tr>
- <td class="operator"><span class="operator_value">keyword</span></td>
+ <td class="operator">id:<span class="operator_value">id</span></td>
<td class="definition">
{{#tr}}
- Search for <z-value></z-value> in the topic or message content.
- {{#*inline "z-value"}}<span class="operator_value">keyword</span>{{/inline}}
+ Narrow to just message ID <z-value></z-value>.
+ {{#*inline "z-value"}}<span class="operator_value">id</span>{{/inline}}
{{/tr}}
</td>
</tr>