forked from nus-cs2103-AY1718S1/addressbook-level4-old
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
133 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,28 +112,29 @@ You can use the `add` command to add new people to your address book | |
[NOTE] | ||
`add` can be replaced by `a` for faster input. | ||
|
||
Format: `add n/NAME p/[PHONE_NUMBER] e/[EMAIL] a/[ADDRESS] r/[REMARK] [t/TAG]...` + | ||
Format: `add n/NAME p/[PHONE_NUMBER] e/[EMAIL] a/[ADDRESS] r/[REMARK] v/[AVATAR] [t/TAG]...` + | ||
|
||
**** | ||
**Things To Note** + | ||
* A person can have any number of tags (including 0) + | ||
* The `EMAIL` should be in the format [email protected] + | ||
* You can set a person's `Name`, `Phone`, `Email`, `Address` or `Remark` to be private by placing a `p` in front of the prefix. + | ||
* You can set a person's `Name`, `Phone`, `Email`, `Address`, `Remark`, `Avatar` to be private by placing a `p` in front of the prefix. + | ||
**** | ||
|
||
**Example Scenarios**: | ||
**** | ||
**Example Scenario 1** + | ||
Suppose you wanted to add your new friend John Doe. You could type the following command to add his details: | ||
`add n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01 b/11-11-1995 r/Likes panda bears` | ||
`add n/John Doe p/98765432 e/[email protected] a/John street, block 123, #01-01 b/11-11-1995 r/Likes panda bears | ||
v/https://helloworld/image.png` | ||
**** | ||
**** | ||
**Example Scenario 2** + | ||
Now suppose you have another friend named Ima Hidearu, who does not provide you with all the contact information that | ||
you need. You can choose to omit these fields by typing in the command: | ||
`add n/Ima Hidearu a/ e/ p/ r/ t/secretive` | ||
`add n/Ima Hidearu a/ e/ p/ r/ v/ t/secretive` | ||
**** | ||
**** | ||
**Example Scenario 3** + | ||
|
@@ -146,6 +147,9 @@ option while typing in your command: | |
**** | ||
// end::addprivacy[] | ||
|
||
[NOTE] | ||
As of version 1.5rc, the avatar field supports only URLs sourced online. References to local files may not work. | ||
|
||
=== Adding a task: `add task` | ||
|
||
You can use the `add task` command to add new tasks to your address book. This allows you to keep track of your | ||
|
@@ -217,7 +221,7 @@ Instead of typing out `list` every time, you can alternatively use `l` to shorte | |
|
||
You can use the `edit` command to quickly fix mistakes in your entries, or add/remove details in your contacts. You may wish to edit your contacts when they change their phone numbers, for example. + | ||
`edit` can be replaced by `e` for faster input. + | ||
Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [r/REMARK] [t/TAG]...` + | ||
Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [r/REMARK] [v/AVATAR] [t/TAG]...` + | ||
|
||
**** | ||
* The index refers to the index number shown in the last listing. The index *must be a positive integer* 1, 2, 3, ... | ||
|
@@ -279,7 +283,7 @@ Changes the tag called `friends` to one called `enemies` instead. All existing c | |
=== Changing the Privacy of a person's details : `changeprivacy`(Since V1.3) | ||
|
||
You can use the `changeprivacy` command to set the privacy settings for each field of an existing `Person` in the address book, which allows you to choose specifically what information will be displayed. + | ||
Format: `changeprivacy INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [r/REMARK]` | ||
Format: `changeprivacy INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [r/REMARK] [v/AVATAR]` | ||
Shorthand commands: `cp` | ||
|
||
**** | ||
|
@@ -298,7 +302,6 @@ Examples: | |
Sets the phone number of the 1st person to be public and their email address to be private. The 1st person's phone number will be displayed, if available, while their email address will be hidden in the UI. | ||
* `cp 2 a/false n/true e/false` + | ||
Sets the address and email of the 2nd person to be public and their name to be private. The 2nd person's address and email will be displayed, if available, while their name will be hidden in the UI. | ||
<<<<<<< HEAD | ||
// end::changeprivacy[] | ||
|
||
// tag::favourite[] | ||
|
@@ -829,7 +832,6 @@ If you click on a box containing a contact, an internet browser on the right sid | |
* If a person's name or address is set to private, the browser will not perform a search if you click on their box. | ||
* Right clicking on the browser will allow you to go to the previous or next page, as well as reload the page. | ||
**** | ||
|
||
== FAQ | ||
|
||
*Q*: How do I transfer my data to another Computer? + | ||
|
@@ -856,7 +858,8 @@ e.g. `delete 3` | |
e.g. `delete task 4` | ||
* *Delete tag* : `deletetag INDEX t/[TAG]` + | ||
e.g. `deletetag 1 2 t/friends` | ||
* *Edit* : `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [r/REMARK] [t/TAG]...` + | ||
* *Edit* : `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] | ||
[v/AVATAR] [t/TAG]...` + | ||
e.g. `edit 2 n/James Lee e/[email protected]` | ||
* *Edit task* : `edit task INDEX [n/NAME] [d/DESCRIPTION] [t/DEADLINE] [p/PRIORITY]` + | ||
e.g. `edit task 2 p/veryhigh` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.