twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.06k stars 67 forks source link

Refactoring the Settings #300

Open twibiral opened 10 months ago

twibiral commented 10 months ago

(Continuation from #268 )

Add an interface like below for each language with only path required. If args or inject doesn't exist, assume it is "" and if fileExtension doesn't exist, assume it is the same as the language etc. Maybe interactive should be required, but the idea is pretty similar. Let me know!

export interface LanguageSettings { path: string; args?: string; fileExtension?: string; inject?: string; interactive?: boolean; embedPlot?: boolean; useMain?: boolean; }