added: feature to quickly add text in todo
changed: line height in mingw theme
This commit is contained in:
parent
6f766e70a2
commit
c22777ce38
27
main.js
27
main.js
|
@ -61,7 +61,7 @@ var themes =
|
||||||
fontfamily: "Lucida console",
|
fontfamily: "Lucida console",
|
||||||
fontsize: "13px",
|
fontsize: "13px",
|
||||||
fontcolor: "black",
|
fontcolor: "black",
|
||||||
lineheight: "100%",
|
lineheight: "110%",
|
||||||
accentcolor: "rgb(177,54,186)"
|
accentcolor: "rgb(177,54,186)"
|
||||||
},
|
},
|
||||||
Default:
|
Default:
|
||||||
|
@ -318,6 +318,10 @@ var commands = [
|
||||||
{
|
{
|
||||||
hint: "Download all vaults",
|
hint: "Download all vaults",
|
||||||
action: downloadallvaults
|
action: downloadallvaults
|
||||||
|
},
|
||||||
|
{
|
||||||
|
hint: "Insert text in todo",
|
||||||
|
action: inserttodo
|
||||||
}];
|
}];
|
||||||
|
|
||||||
var snippets = [
|
var snippets = [
|
||||||
|
@ -981,6 +985,27 @@ function downloadnotes()
|
||||||
}, 500);
|
}, 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()
|
function downloadallvaults()
|
||||||
{
|
{
|
||||||
var data =
|
var data =
|
||||||
|
|
Loading…
Reference in New Issue