TERMINAL: Add option for partial history search (#736)

This commit is contained in:
Michael Ficocelli
2023-08-21 06:50:17 -04:00
committed by GitHub
parent 7ea0725a39
commit 86b0bd5ac7
3 changed files with 91 additions and 5 deletions
+12
View File
@@ -30,6 +30,18 @@ export const MiscPage = (): React.ReactElement => {
</>
}
/>
<OptionSwitch
checked={Settings.EnableHistorySearch}
onChange={(newValue) => (Settings.EnableHistorySearch = newValue)}
text="Enable terminal history search with arrow keys"
tooltip={
<>
If there is user-entered text in the terminal, using the up arrow will search through the terminal history
for previous commands that start with the current text, instead of navigating to the most recent history
item. Search results can be executed immediately via 'enter', or autofilled into the terminal with 'tab'.
</>
}
/>
</GameOptionsPage>
);
};