From 818efab872c19b0f21e3a536c14989d8ae0dfb69 Mon Sep 17 00:00:00 2001 From: shurvirarora Date: Wed, 6 Apr 2022 13:36:06 +0800 Subject: [PATCH 1/3] Update UserGuide.md --- docs/UserGuide.md | 22 +++++++++---------- .../address/logic/commands/TagCommand.java | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 3e686751355..6d1a6c25293 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -60,7 +60,7 @@ This personalised university contact list ensures that users do not have to cont
  1. Find contacts matching ALL keywords
  2. Find contacts matching ANY keywords
  3. -
  4. Find contacts by tags
  5. +
  6. Find contacts by tags
@@ -194,7 +194,7 @@ ________________________________________________________________________________
  1. Find contacts matching ALL keywords
  2. Find contacts matching ANY keywords
  3. -
  4. Find contacts by tags
  5. +
  6. Find contacts by tags
@@ -409,7 +409,7 @@ Examples: * `find-wide David Computing` returns contacts with the name `David` **or** are from `Computing` * `find-wide David Professor` returns contacts with the name `David` **or** have `Professor` as their role -### Find contacts by tags: `find-tag ...` +### Find contacts by tags: `tag ...` Find contacts whose attributed tags meet the given keywords. @@ -423,13 +423,13 @@ Find contacts whose attributed tags meet the given keywords. * The search is case-insensitive. e.g `colleague` will match `Colleague` * Only tags are included in the search, other fields are ignored. -Format: `find-tag [MORE_TAGS]` +Format: `tag [MORE_TAGS]` > :bulb: **TIP** Attaching tags to a contact are a way to attach your own meaning to the contact, e.g. Adding the `CS2103T` tag to your professor's contact. Examples: -* `find-tag CS2103T` Lists all contacts that have `CS2103T` tag -* `find-tag colleague bestie` Lists all contacts that have `colleague` or `bestie` tag. +* `tag CS2103T` Lists all contacts that have `CS2103T` tag +* `tag colleague bestie` Lists all contacts that have `colleague` or `bestie` tag. ## Favourite Commands @@ -576,11 +576,11 @@ The following commands are used in dealing with contacts. The following commands are used in dealing with finding contacts. -| Function | Format Of Command | -|-------------------------------------------|-------------------------------------| -| **Find contact(s) matching ALL keywords** | `find KEYWORD [MORE_KEYWORDS]` | -| **Find contact(s) matching ANY keywords** | `find-wide KEYWORD [MORE_KEYWORDS]` | -| **Find contact(s) by tags** | `find-tag TAG` | +| Function | Format Of Command | +|---------------------------------------------|-------------------------------------| +| **Find contact(s) matching ALL keywords** | `find KEYWORD [MORE_KEYWORDS]` | +| **Find contact(s) matching ANY keywords** | `find-wide KEYWORD [MORE_KEYWORDS]` | +| **Find contact(s) by tags** | `tag TAG` | ### Category: Favourite Commands diff --git a/src/main/java/seedu/address/logic/commands/TagCommand.java b/src/main/java/seedu/address/logic/commands/TagCommand.java index 5d67f3ff7f5..84637313877 100644 --- a/src/main/java/seedu/address/logic/commands/TagCommand.java +++ b/src/main/java/seedu/address/logic/commands/TagCommand.java @@ -15,7 +15,7 @@ */ public class TagCommand extends Command { - public static final String COMMAND_WORD = "find-tag"; + public static final String COMMAND_WORD = "tag"; public static final String MESSAGE_USAGE = COMMAND_WORD + ": Finds all persons whose tags contain any of " + "the specified keywords (case-insensitive) and displays them as a list with index numbers.\n" From 9f10e551170489303a4cb126081ef71eb7fcb8dc Mon Sep 17 00:00:00 2001 From: shurvirarora Date: Wed, 6 Apr 2022 13:37:18 +0800 Subject: [PATCH 2/3] Update UserGuide.md --- docs/UserGuide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 6d1a6c25293..ff2dd98be09 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -60,7 +60,7 @@ This personalised university contact list ensures that users do not have to cont
  1. Find contacts matching ALL keywords
  2. Find contacts matching ANY keywords
  3. -
  4. Find contacts by tags
  5. +
  6. Find contacts by tags
@@ -194,7 +194,7 @@ ________________________________________________________________________________
  1. Find contacts matching ALL keywords
  2. Find contacts matching ANY keywords
  3. -
  4. Find contacts by tags
  5. +
  6. Find contacts by tags
From 0568c82038e04f12ca09500c5828fdf1c454abca Mon Sep 17 00:00:00 2001 From: shurvirarora Date: Wed, 6 Apr 2022 13:38:54 +0800 Subject: [PATCH 3/3] Update UserGuide.md --- docs/UserGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index ff2dd98be09..cfd5a8b06ea 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -546,7 +546,6 @@ ________________________________________________________________________________ ## Command summary -> :spiral_notepad: **NOTE:** KEYWORD refers to either NAME, ROLE or FACULTY ### Category: General Commands @@ -582,6 +581,7 @@ The following commands are used in dealing with finding contacts. | **Find contact(s) matching ANY keywords** | `find-wide KEYWORD [MORE_KEYWORDS]` | | **Find contact(s) by tags** | `tag TAG` | +> :spiral_notepad: **NOTE:** KEYWORD refers to either NAME, ROLE or FACULTY ### Category: Favourite Commands