You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Finding persons by contact information : `find`
175
175
176
-
Finds persons whose names, email address, contact number, or tag contain any of the given keywords.
176
+
Finds persons whose name, email address, contact number, or tags contain any of the given keywords, even if the keyword is only a part of the information stored.
177
177
178
178
Format:
179
179
180
180
`find PREFIX/KEYWORD [PREFIX/MORE_KEYWORDS]…`
181
181
182
182
* Only the specified fields are searched.
183
-
* The search is case-insensitive. e.g. `hans` will match `Hans`
184
-
* The order of the keywords does not matter. e.g. `Hans Bo` will match `Bo Hans`
185
-
* Persons matching at least one keyword will be returned (i.e. `OR` search).
186
-
e.g. `n/Hans n/Bo` will return `Hans Gruber`, `Bo Yang`
183
+
* The search is case-insensitive. e.g. `hans` will match `Hans`.
184
+
* The order of the keywords does not matter, e.g. `find n/Hans n/Bo` is equivalent to `find n/Bo n/Hans`.
185
+
* Persons matching at least one keyword will be returned (i.e. `OR` search),
186
+
e.g. `find n/Hans n/Bo` will match persons with names `Hans Gruber` or `Bo Yang`.
187
+
* Keywords do not need to fully match the field, a partial match is sufficient, e.g. `bern` can match names like `Bernice` or `Bernard`
187
188
188
189
How `find` works with multiple parameters:
189
190
* If multiple keywords for a field are present, `find` will display contacts that satisfy *any* keyword for that field.
190
191
* If multiple fields are present, `find` will display contacts that satisfy **all** of these fields.
{ width="750px" }
195
+
{ width="675px" }
195
196
196
197
*`find t/floor t/run` returns all contacts with any tag containing `floor` or `run` <br>
197
-
{ width="750px" }
198
+
{ width="675px" }
198
199
199
-
<divstyle="page-break-after: always;"></div>
200
+
*`find n/alex n/bernice t/floor t/neighbour` returns all contacts that have names containing either `alex` or `bernice`**with** tags containing either `floor` or `neighbour`
200
201
201
202
### Deleting a person : `delete`
202
203
@@ -218,10 +219,10 @@ Adds the specified person's tag.
218
219
219
220
Format: `addtag INDEX t/TAG [t/MORE_TAGS]…`
220
221
221
-
* Adds the tags with the specified name`TAG` of the person at the specified `INDEX`.
222
+
* Adds the tags with the specified value`TAG` of the person at the specified `INDEX`.
222
223
* The index refers to the index number shown in the displayed person list.
223
224
* The index **must be a positive integer** 1, 2, 3, …
224
-
* Multiple tags can be added at a time.
225
+
* Multiple tags can be added to a person per command.
225
226
* Attempt to add duplicate tags to a person will cause an error message to be thrown.
226
227
227
228
Examples:
@@ -234,15 +235,15 @@ Deletes the specified person's tag.
234
235
235
236
Format: `deltag INDEX t/TAG`
236
237
237
-
* Deletes the tag with the specified name`TAG` of the person at the specified `INDEX`.
238
+
* Deletes the tag with the specified value`TAG` of the person at the specified `INDEX`.
238
239
* The index refers to the index number shown in the displayed person list.
239
240
* The index **must be a positive integer** 1, 2, 3, …
240
-
* Only one tag can be deleted at a time.
241
-
* The list of the tag will be updated accordingly.
241
+
* Only one tag can be deleted per command.
242
+
* The list of tags will be updated accordingly.
242
243
243
244
Examples:
244
245
*`deltag 1 t/friend`
245
-
deletes the friend tag of the first person in the list.
246
+
deletes the `friend` tag of the first person in the list.
246
247
247
248
<divstyle="page-break-after: always;"></div>
248
249
@@ -252,7 +253,7 @@ Categorizes a tag under a defined category.
252
253
253
254
Format: `cattag t/TAG [t/MORE_TAGS]… CATEGORY`
254
255
255
-
* Sets the tag(s) in CampusConnect with the specified name`TAG` to fall under the specified `CATEGORY`.
256
+
* Sets the tag(s) in CampusConnect with the specified value`TAG` to fall under the specified `CATEGORY`.
256
257
* Currently available categories with their respective keywords and colours are:
* Multiple tags can be categorized to the same category at a time.
267
+
* Multiple tags can be categorized to the same category using a single command.
267
268
* All tags specified must be valid existing tags.
268
269
* Attempts to set a tag to its current category will cause the whole command to be rejected.
269
270
* Only one category is allowed to be entered per command, i.e. `cattag t/tag1 acads t/tag2 general` is not allowed.
271
+
* Note: Newly created tags (by [`add`:link:](#adding-a-person-add) or [`addtag`:link:](#adding-tags-to-a-specific-person-addtag)) will have category `General` and colour `Grey` by default.
270
272
271
273
Examples:
272
274
*`cattag t/CS2100 acads` categorizes the tag `CS2100` under `Academics` and display colour of the tag`CS2100` becomes `Gold`.
273
275
*`cattag t/floorball t/mahjong activity` categorizes both tags `floorball` and `mahjong` under `Activities` with colour `Blue`.
274
-
* Newly created tags (by [`add`](#adding-a-person-add) or [`addtag`](#adds-tags-to-a-specific-person--addtag)) will have category `General` and colour `Grey` by default.
Undoes the previous command and reverts CampusConnect.
@@ -303,11 +302,11 @@ Clears all entries from CampusConnect.
303
302
304
303
Format: `clear`
305
304
306
-
<boxtype="warning"seamless>
305
+
<boxtype="warning">
307
306
<strong>Caution:</strong>
308
-
There will not be any confirmation message shown. </br>
309
307
310
-
If you have unintentionally executed the `clear` command, you can use the [`undo`](#undo-a-command-undo) command to restore your data.
308
+
* There will not be any confirmation message shown. </br>
309
+
* If you have unintentionally executed the `clear` command, you can use the [`undo`:link:](#undo-a-command-undo) command to restore your data.
311
310
</box>
312
311
313
312
### Exiting the program : `exit`
@@ -324,10 +323,11 @@ CampusConnect data is saved in the hard disk automatically after any command tha
324
323
325
324
CampusConnect data is saved automatically as a JSON file `[JAR file location]/data/CampusConnect.json`. Advanced users are welcome to update data directly by editing that data file.
326
325
327
-
<boxtype="warning"seamless>
326
+
<boxtype="warning">
328
327
<strong>Caution:</strong>
329
-
If your changes to the data file makes its format invalid, CampusConnect will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it.<br>
330
-
Furthermore, certain edits can cause CampusConnect to behave in unexpected ways (e.g., if a value entered is outside the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
328
+
329
+
* If your changes to the data file makes its format invalid, CampusConnect will discard all data and start with an empty data file at the next run. Hence, it is recommended to take a backup of the file before editing it.<br>
330
+
* Furthermore, certain edits can cause CampusConnect to behave in unexpected ways (e.g., if a value entered is outside the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
0 commit comments