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
Copy file name to clipboardexpand all lines: docs/DeveloperGuide.md
+22-20
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ The **API** of this component is specified in [`Ui.java`](https://github.com/se-
72
72
73
73

74
74
75
-
The UI consists of a `MainWindow` that is made up of parts e.g.`CommandBox`, `ResultDisplay`, `PersonListPanel`, `StatusBarFooter` etc. All these, including the `MainWindow`, inherit from the abstract `UiPart` class which captures the commonalities between classes that represent parts of the visible GUI.
75
+
The UI consists of a `MainWindow` that is made up of parts e.g.`CommandBox`, `ResultDisplay`, `PersonListPanel`, `StatusBarFooter` etc. All these, including the `MainWindow`, inherit from the abstract `UiPart` class which captures the commonalities between classes that represent parts of the visible GUI. However, `DialogBox` inherits from `HBox`.
76
76
77
77
The `UI` component uses the JavaFx UI framework. The layout of these UI parts are defined in matching `.fxml` files that are in the `src/main/resources/view` folder. For example, the layout of the [`MainWindow`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/ui/MainWindow.java) is specified in [`MainWindow.fxml`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/resources/view/MainWindow.fxml)
78
78
@@ -83,6 +83,7 @@ The `UI` component,
83
83
* keeps a reference to the `Logic` component, because the `UI` relies on the `Logic` to execute commands.
84
84
* depends on some classes in the `Model` component, as it displays `Person` object residing in the `Model`.
85
85
86
+
`CommandBox` holds a reference towards `AutocompleteParser` which helps parses user input for a list of suggestions to show to the user.
Copy file name to clipboardexpand all lines: docs/UserGuide.md
+15
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,21 @@ Exits the program.
207
207
208
208
Format: `exit`
209
209
210
+
### Autocomplete
211
+
212
+
When using the program, you might have noticed that suggestions pop up when you are entering in commands. This is the autocomplete feature.
213
+
214
+
Autocomplete searches for keywords matching the word under the caret position. For example, when you type in `ad`, autocomplete will show a list of commands matching this initial string.
215
+
216
+
Autocomplete also supports autocompletion for fields. These include:
217
+
* Modules `m/`
218
+
* Tags `t/`
219
+
* Gender `g/`
220
+
221
+
When these prefixes are detected, autocomplete automatically displays a list of suggestions related to these fields.
222
+
223
+

224
+
210
225
### Saving the data
211
226
212
227
AddressBook data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
0 commit comments