added: feature to quickly add text in todo

changed: line height in mingw theme
This commit is contained in:
quenousimporte 2023-05-15 14:49:52 +02:00
parent 6f766e70a2
commit c22777ce38
1 changed files with 26 additions and 1 deletions

27
main.js
View File

@ -61,7 +61,7 @@ var themes =
fontfamily: "Lucida console",
fontsize: "13px",
fontcolor: "black",
lineheight: "100%",
lineheight: "110%",
accentcolor: "rgb(177,54,186)"
},
Default:
@ -318,6 +318,10 @@ var commands = [
{
hint: "Download all vaults",
action: downloadallvaults
},
{
hint: "Insert text in todo",
action: inserttodo
}];
var snippets = [
@ -981,6 +985,27 @@ function downloadnotes()
}, 500);
}
function inserttodo()
{
filter.placeholder = "Text...";
filter.value = "";
filteredlist.hidden = true;
searchdialog.hidden = false;
filter.focus();
filter.select();
filter.onkeydown = function()
{
if (event.key === "Enter")
{
event.preventDefault();
searchdialog.hidden = true;
getnote("todo").content += "\n" + filter.value;
datachanged();
}
}
}
function downloadallvaults()
{
var data =