node tool: editor in settings

This commit is contained in:
quenousimporte 2023-07-11 18:24:30 +02:00
parent 9ca9083c45
commit 1b73d01043
2 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,7 @@ axios.post(`${settings.url}/handler.php`,
fs.writeFileSync("note.md", note.content);
cp.exec("sublime_text.exe -w note.md", function (err, stdout, stderr)
cp.exec(`${settings.command} note.md`, function (err, stdout, stderr)
{
var newcontent = fs.readFileSync("note.md", { encoding: "utf8", flag: "r" });

View File

@ -2,4 +2,6 @@
"password": "",
"url": "http://localhost:8000",
"maxcount": 50
"maxcount": 50,
"command": "sublime_text.exe -w"
}