node tool: editor in settings
This commit is contained in:
parent
9ca9083c45
commit
1b73d01043
|
@ -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" });
|
||||
|
||||
|
|
|
@ -2,4 +2,6 @@
|
|||
"password": "",
|
||||
"url": "http://localhost:8000",
|
||||
"maxcount": 50
|
||||
"maxcount": 50,
|
||||
"command": "sublime_text.exe -w"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue