Skip to content

Commit 3ef5b25

Browse files
authored
Merge pull request #109 from hengyiqun/branch-notes
Branch notes
2 parents 66c1be9 + 7486c04 commit 3ef5b25

2 files changed

Lines changed: 58 additions & 33 deletions

File tree

docs/UserGuide.md

Lines changed: 56 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MeetBuddy is a **desktop app for managing contacts and daily tasks, optimized fo
2424
1. Type the command in the command box and press Enter to execute it. e.g. typing **`help`** and pressing Enter will open the help window.<br>
2525
Some example commands you can try:
2626

27-
* **`list`** : Lists all contacts.
27+
* **`listp`** : Lists all contacts.
2828

2929
* **`add`**`n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01` : Adds a contact named `John Doe` to the Address Book.
3030

@@ -83,24 +83,15 @@ Format: `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [g/GROUP]…​`
8383
A person can have any number of groups (including 0)
8484
</div>
8585

86-
* Assigning Priorities:
87-
88-
Format:
89-
90-
`add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS pr/PRIORITY [no/NOTES] d/DATE`
91-
92-
PRIORITY can be {1,2,3,4,5}
93-
94-
9586
Examples:
9687
* `add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01`
9788
* `add n/Betsy Crowe g/CS2103 e/betsycrowe@example.com a/Newgate Prison p/1234567 g/badminton`
9889

99-
### Listing all persons : `list`
90+
### Listing all persons : `listp`
10091

10192
Shows a list of all persons in the address book.
10293

103-
Format: `list`
94+
Format: `listp`
10495

10596
### Editing a person : `edit`
10697

@@ -109,7 +100,6 @@ Edits an existing person in the address book.
109100
Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [g/GROUP]…​`
110101

111102
* Edits the person at the specified `INDEX`. The index refers to the index number shown in the displayed person list. The index **must be a positive integer** 1, 2, 3, …​
112-
* At least one of the optional fields must be provided.
113103
* Existing values will be updated to the input values.
114104
* When editing groups, the existing groups of the person will be removed i.e adding of groups is not cumulative.
115105
* You can remove all the person’s groups by typing `g/` without
@@ -121,23 +111,36 @@ Examples:
121111

122112
### Locating persons by personName: `find`
123113

124-
Finds persons whose names or whose groups contain any of the given keywords.
114+
Finds persons whose names contain any of the given keywords.
125115

126116
Format: `find KEYWORD [MORE_KEYWORDS]`
127117

128118
* The search is case-insensitive. e.g `hans` will match `Hans`
129119
* The order of the keywords does not matter. e.g. `Hans Bo` will match `Bo Hans`
130-
* Both the personName and group are searched.
120+
* Only the personName are searched.
131121
* Only full words will be matched e.g. `Han` will not match `Hans`
132-
* Persons whose personName or group matching at least one keyword will be returned (i.e. `OR` search).
133-
e.g. `Hans Bo` will return `Hans Gruber`, `Bo Yang`
122+
* Persons matching at least one keyword will be returned (i.e. OR search). e.g. `Hans Bo` will return `Hans Gruber`, `Bo Yang`
134123

135124
Examples:
136125
* `find John` returns `john` and `John Doe`
137-
* `find badminton` returns the list of contacts that are in the badminton group
138126
* `find alex david` returns `Alex Yeoh`, `David Li`<br>
139127
![result for 'find alex david'](images/findAlexDavidResult.png)
140128

129+
### Locating persons by personName: `findg`
130+
131+
Finds persons whose groups contain any of the given keywords.
132+
133+
Format: `findg KEYWORD [MORE_KEYWORDS]`
134+
135+
* The search is case-insensitive. e.g `badminton` will match `Badminton`
136+
* The order of the keywords does not matter. e.g. `findg tennis table` will list every person in the table tennis group
137+
* Only the groups are searched.
138+
* Only full words will be matched e.g. `badminton` will not match `badmintons`
139+
* Persons whose group match at least one keyword will be returned (i.e. `OR` search).
140+
141+
Examples:
142+
* `findg badminton` returns the list of contacts that are in the badminton group
143+
141144
### Deleting a person : `delete`
142145

143146
Deletes the specified person from the address book.
@@ -196,31 +199,52 @@ If your changes to the data file makes its format invalid, AddressBook will disc
196199

197200
Adds a meeting to MeetBuddy.
198201

199-
Format: `addm n/NAME st/TIME ed/TIME des/DESCRIPTIONS pr/PRIORITY [p/PERSON RELATED] [g/GROUP]…​`
202+
Format: `addm n/NAME st/TIME ed/TIME des/DESCRIPTIONS pr/PRIORITY [p/PERSON RELATED] [g/GROUP]…​`
200203

201204
<div markdown="span" class="alert alert-primary">:bulb: **Tip:**
202-
A meeting can have any number of groups that are already existed in the contacts.(including 0)
205+
A meeting can have any number of groups that are already existed in the contacts (including 0).
203206
It will add all the persons belong to that group into the person related field.
204207
</div>
205208

209+
### Listing all meetings : `listm`
206210

211+
Shows a list of all meetings in the meeting book.
207212

213+
Format: `listm`
208214

209-
* Assigning Priorities:
215+
### Editing a meeting : `editm`
210216

211-
Format:
217+
Edits an existing meeting in the meeting book.
212218

213-
`add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS pr/PRIORITY [no/NOTES] d/DATE`
219+
Format: `editm INDEX n/NAME st/START TIME ed/END TIME desc/DESCRIPTION pr/PRIORITY [g/GROUP]...​`
214220

215-
PRIORITY can be {1,2,3,4,5}
221+
* Edits the meeting at the specified `INDEX`. The index refers to the index number shown in the displayed meeting list. The index **must be a positive integer** 1, 2, 3, …​
222+
* Existing values will be updated to the input values.
223+
* When editing groups, the existing groups in the meeting will be removed i.e adding of groups is not cumulative.
224+
* You can remove all the meeting’s groups by typing `g/` without specifying any groups after it.
225+
226+
Examples:
227+
* `editm 1 n/CS2103 Lecture g/SOC g/friends` Edits the name of the 1st meeting to be `CS2103 Lecture`, and its groups to be `SOC` and `friends`.
228+
* `editm 2 n/CS2106 Lab g/` Edits the name of the 2nd meeting to be `CS2106 Lab` and clears all existing groups in the meeting.
216229

230+
### Deleting a meeting: `deletem`
231+
232+
Deletes a meeting in the meeting book.
233+
234+
Format: `deletem INDEX`
235+
236+
* Deletes the meeting at the specified `INDEX`.
237+
* The index refers to the index number shown in the displayed meeting list.
238+
* The index **must be a positive integer** 1, 2, 3, …​
217239

218240
Examples:
219-
* `add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01`
220-
* `add n/Betsy Crowe g/CS2103 e/betsycrowe@example.com a/Newgate Prison p/1234567 g/badminton`
241+
* `listm` followed by `delete 2` deletes the 2nd meeting in the meeting book.
221242

222-
_Details coming soon ..._
243+
### Listing all persons and meetings : `list`
223244

245+
Shows a list of all persons and meetings in MeetBuddy.
246+
247+
Format: `list`
224248
--------------------------------------------------------------------------------------------------------------------
225249

226250
## FAQ
@@ -234,10 +258,10 @@ _Details coming soon ..._
234258

235259
Action | Format, Examples
236260
--------|------------------
237-
**Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [g/GROUP]…​` <br> e.g., `add n/James Ho p/22224444 e/jamesho@example.com a/123, Clementi Rd, 1234665 g/CS2106 g/badminton`
261+
**Add** | `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [g/GROUP]…​` <br> e.g., `add n/James Ho p/22224444 e/jamesho@example.com a/123, Clementi Rd, 1234665 g/CS2106 g/badminton` <br> <br> `addm n/NAME st/START TIME ed/END TIME desc/DESCRIPTION pr/PRIORITY [g/GROUP]...[p/INDEX OF PERSON RELATED]...​` <br> e.g., `addm n/CS2103 Lecture st/2021-03-12 14:00 ed/2021-03-12 16:00 desc/Week 7 pr/3 g/lectures g/SoC p/1 p/2`
238262
**Clear** | `clear`
239-
**Delete** | `delete INDEX`<br> e.g., `delete 3`
240-
**Edit** | `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [g/GROUP]…​`<br> e.g.,`edit 2 n/James Lee e/jameslee@example.com`
241-
**Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake`
242-
**List** | `list`
263+
**Delete** | `delete INDEX`<br> e.g., `delete 3` <br> <br> `deletem INDEX`<br> e.g., `delete 3`
264+
**Edit** | `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [g/GROUP]…​`<br> e.g.,`edit 2 n/James Lee e/jameslee@example.com` <br> <br> `editm n/NAME st/START TIME ed/END TIME desc/DESCRIPTION pr/PRIORITY [g/GROUP]...[p/INDEX OF PERSON RELATED]...​`<br> e.g.,`edit 2 n/CS2103 Lecture`
265+
**Find** | `find KEYWORD [MORE_KEYWORDS]`<br> e.g., `find James Jake` <br> <br> `findg KEYWORD [MORE_KEYWORDS]`<br> e.g., `findg badminton` <br>
266+
**List** | `list`, `listm`, `listp`
243267
**Help** | `help`

src/main/java/seedu/address/logic/commands/meetings/EditMeetingCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public class EditMeetingCommand extends Command {
3434
+ PREFIX_END_TIME + "END TIME "
3535
+ PREFIX_DESCRIPTION + "DESCRIPTION "
3636
+ PREFIX_PRIORITY + "PRIORITY "
37-
+ "[" + PREFIX_GROUP + "GROUP]...\n"
37+
+ "[" + PREFIX_GROUP + "GROUP]..."
38+
+ "[" + PREFIX_PERSON_CONNECTION + "INDEX OF PERSON RELATED]...\n"
3839
+ "Example: " + COMMAND_WORD + " 1 "
3940
+ PREFIX_NAME + "CS2103 Lecture "
4041
+ PREFIX_START_TIME + "2021-03-12 14:00 "

0 commit comments

Comments
 (0)