forked from nus-cs2103-AY1718S1/addressbook-level4-old
-
Notifications
You must be signed in to change notification settings - Fork 3
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
2 changed files
with
103 additions
and
39 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 |
---|---|---|
|
@@ -298,29 +298,6 @@ The `redo` command fails as there are no `undo` commands executed previously. | |
`redo` (reapplies the `clear` command) + | ||
// end::undoredo[] | ||
|
||
=== Locking the address book : `lock` | ||
|
||
Locks the address book by a password. + | ||
Format: `lock PASSWORD` | ||
|
||
**** | ||
* Password should be longer than 4 characters. | ||
* After locking, user cannot input any commands except `unlock`. | ||
* Data file will be encrypted after locking. | ||
* Person contact list will be cleared. | ||
**** | ||
|
||
=== Unlocking the address book: `unlock` | ||
|
||
Unlocks the address book after entering correct password. + | ||
Format: `unlock PASSWORD` | ||
|
||
**** | ||
* Password should be longer than 4 characters. | ||
* Encrypted data file will be decrypted after locking. | ||
* Person contact list will reload. | ||
**** | ||
|
||
=== Clearing all entries : `clear` | ||
|
||
Clears all entries from the address book. + | ||
|
@@ -338,6 +315,7 @@ There is no need to save manually. | |
|
||
== Since v1.2 | ||
|
||
// tag::sort[] | ||
=== Sorting all persons : `sort` | ||
|
||
Shows a sorted list of all persons in the address book. + | ||
|
@@ -348,17 +326,41 @@ Format: `sort OPTION` | |
* The OPTION refers to a contact's field, e.g. 'name', 'phone', 'email', ... | ||
* The OPTION *must be a hyphen followed by a single lower case alphabet* -n, -p, -e, ... | ||
* Available options: | ||
'-n': sort by name | ||
'-p': sort by phone number | ||
'-e': sort by email address | ||
'-a': sort by address | ||
'-t': sort by tag | ||
**'-n': sort by name | ||
**'-p': sort by phone number | ||
**'-e': sort by email address | ||
**'-a': sort by address | ||
**'-t': sort by tag | ||
**** | ||
|
||
Examples: | ||
|
||
* `sort -n` + | ||
Sorts the address book alphabetically by name. | ||
// end::sort[] | ||
|
||
=== Locking the address book : `lock` | ||
|
||
Locks the address book by a password. + | ||
Format: `lock PASSWORD` | ||
|
||
**** | ||
* Password should be longer than 4 characters. | ||
* After locking, user cannot input any commands except `unlock`. | ||
* Data file will be encrypted after locking. | ||
* Person contact list will be cleared. | ||
**** | ||
|
||
=== Unlocking the address book: `unlock` | ||
|
||
Unlocks the address book after entering correct password. + | ||
Format: `unlock PASSWORD` | ||
|
||
**** | ||
* Password should be longer than 4 characters. | ||
* Encrypted data file will be decrypted after locking. | ||
* Person contact list will reload. | ||
**** | ||
|
||
== Coming in v2.0 | ||
|
||
|
@@ -378,6 +380,10 @@ Adds schedule with the 1st person: `dinner at 7`. | |
* `sch 2 s/` + | ||
Clears all existing schedules with the 2nd person. | ||
|
||
=== real time highlight | ||
|
||
Real time highlight when input command is not correct. | ||
|
||
== FAQ | ||
|
||
*Q*: How do I transfer my data to another Computer? + | ||
|
@@ -392,7 +398,9 @@ e.g. `add n/James Ho p/22224444 e/[email protected] a/123, Clementi Rd, 123466 | |
e.g. `delete 3`, `del john` | ||
* *Edit* : `edit INDEX [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]...` + | ||
e.g. `edit 2 n/James Lee e/[email protected]` | ||
* *Find* : `find KEYWORD [MORE_KEYWORDS]` + | ||
* *Find* : `find KEYWORD [MORE_KEYWORDS]` or + | ||
`find -u KEYWORD` or + | ||
`find -d [n/NAME] [p/PHONE_NUMBER] [e/EMAIL] [a/ADDRESS] [t/TAG]...` + | ||
e.g. `find James Jake` | ||
* *List* : `list` | ||
* *Help* : `help` | ||
|
@@ -403,3 +411,5 @@ e.g. 'sort -n' | |
* *History* : `history` | ||
* *Undo* : `undo` | ||
* *Redo* : `redo` | ||
* *Lock* : `lock PASSWORD` | ||
* *Unlock* : `unlock PASSWORD` |