mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
TERMINAL: Add option for partial history search (#736)
This commit is contained in:
committed by
GitHub
parent
7ea0725a39
commit
86b0bd5ac7
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user