Skip to content

Commit c885ca9

Browse files
committed
add external editor field to the settings page
1 parent 270454e commit c885ca9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/views/Settings.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const defaultSettings = {
1313
dampingFactor: 0.8,
1414
fov: 75,
1515
textYValue: 0,
16+
externalEditor: "/usr/bin/code"
1617
};
1718

1819
function Settings() {
@@ -72,6 +73,19 @@ function Settings() {
7273
<ToolBar page="settings" />
7374
<Container className="settings-page">
7475
<Form>
76+
<fieldset>
77+
<legend>• General ⚙️</legend>
78+
<InputGroup>
79+
<InputGroup.Text>External Editor</InputGroup.Text>
80+
<Form.Control
81+
onChange={handleChange}
82+
id="externalEditor"
83+
type="text"
84+
min={1}
85+
aria-label="ExternalEditor"
86+
/>
87+
</InputGroup>
88+
</fieldset>
7589
<fieldset>
7690
<legend>• View Layouts 🪟</legend>
7791
<Form.Check

0 commit comments

Comments
 (0)