Done! I've restored the custom command input field for the custom IDE option: (#1089)

 Added the input field to [GeneralSettings.tsx](file:///private/var/folders/5q/5vgq75y92dz0k7n62z93299r0000gn/T/vibe-kanban/worktrees/28ec-restore-custom-c/frontend/src/pages/settings/GeneralSettings.tsx#L471-L493) that appears when Custom editor is selected
 Added localization strings to all languages (English, Spanish, Japanese, Korean)
 Type checks passed
This commit is contained in:
Britannio Jarrett
2025-10-23 10:46:50 +01:00
committed by GitHub
parent c459ffe1ad
commit fdb75dc7f4
5 changed files with 40 additions and 0 deletions

View File

@@ -53,6 +53,10 @@
"label": "Editor Type", "label": "Editor Type",
"placeholder": "Select editor", "placeholder": "Select editor",
"helper": "Choose your preferred code editor interface." "helper": "Choose your preferred code editor interface."
},
"customCommand": {
"label": "Custom Editor Command",
"helper": "Enter the command to launch your custom editor. This will be used to open files."
} }
}, },
"github": { "github": {

View File

@@ -53,6 +53,10 @@
"label": "Tipo de Editor", "label": "Tipo de Editor",
"placeholder": "Seleccionar editor", "placeholder": "Seleccionar editor",
"helper": "Elige tu editor de código preferido." "helper": "Elige tu editor de código preferido."
},
"customCommand": {
"label": "Comando de Editor Personalizado",
"helper": "Ingresa el comando para lanzar tu editor personalizado. Se utilizará para abrir archivos."
} }
}, },
"github": { "github": {

View File

@@ -53,6 +53,10 @@
"label": "エディタータイプ", "label": "エディタータイプ",
"placeholder": "エディターを選択", "placeholder": "エディターを選択",
"helper": "お好みのコードエディターインターフェースを選択してください。" "helper": "お好みのコードエディターインターフェースを選択してください。"
},
"customCommand": {
"label": "カスタムエディターコマンド",
"helper": "カスタムエディターを起動するコマンドを入力してください。ファイルを開くために使用されます。"
} }
}, },
"github": { "github": {

View File

@@ -53,6 +53,10 @@
"label": "에디터 유형", "label": "에디터 유형",
"placeholder": "에디터 선택", "placeholder": "에디터 선택",
"helper": "선호하는 코드 에디터 인터페이스를 선택하세요." "helper": "선호하는 코드 에디터 인터페이스를 선택하세요."
},
"customCommand": {
"label": "사용자 정의 에디터 명령",
"helper": "사용자 정의 에디터를 실행하는 명령을 입력하세요. 파일을 여는 데 사용됩니다."
} }
}, },
"github": { "github": {

View File

@@ -467,6 +467,30 @@ export function GeneralSettings() {
{t('settings.general.editor.type.helper')} {t('settings.general.editor.type.helper')}
</p> </p>
</div> </div>
{draft?.editor.editor_type === EditorType.CUSTOM && (
<div className="space-y-2">
<Label htmlFor="custom-command">
{t('settings.general.editor.customCommand.label')}
</Label>
<Input
id="custom-command"
placeholder="e.g., code, subl, vim"
value={draft?.editor.custom_command || ''}
onChange={(e) =>
updateDraft({
editor: {
...draft!.editor,
custom_command: e.target.value || null,
},
})
}
/>
<p className="text-sm text-muted-foreground">
{t('settings.general.editor.customCommand.helper')}
</p>
</div>
)}
</CardContent> </CardContent>
</Card> </Card>