add setting for first name
This commit is contained in:
parent
0f1c4407c3
commit
e5a50babf7
10
main.js
10
main.js
|
@ -13,7 +13,8 @@ var defaultsettings =
|
||||||
colors: true,
|
colors: true,
|
||||||
tagsinlists: true,
|
tagsinlists: true,
|
||||||
uselinkpopup: true,
|
uselinkpopup: true,
|
||||||
downloadextension: ".md"
|
downloadextension: ".md",
|
||||||
|
firstname: "Simon"
|
||||||
};
|
};
|
||||||
|
|
||||||
//builtin
|
//builtin
|
||||||
|
@ -226,13 +227,13 @@ var snippets = [
|
||||||
{
|
{
|
||||||
command: "/bonjour",
|
command: "/bonjour",
|
||||||
hint: "Standard answer (fr)",
|
hint: "Standard answer (fr)",
|
||||||
insert: "Bonjour ,\n\n\n\nBien cordialement,\nSimon",
|
insert: "Bonjour ,\n\n\n\nBien cordialement,\n",
|
||||||
cursor: -29
|
cursor: -29
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
command: "/hello",
|
command: "/hello",
|
||||||
hint: "Standard answer (en)",
|
hint: "Standard answer (en)",
|
||||||
insert: "Hello ,\n\n\n\nKind regards,\nSimon",
|
insert: "Hello ,\n\n\n\nKind regards,\n",
|
||||||
cursor: -24
|
cursor: -24
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1146,6 +1147,9 @@ function loadsettings()
|
||||||
colored.hidden = !settings.colors;
|
colored.hidden = !settings.colors;
|
||||||
md.style.color = settings.colors ? "transparent" : "inherit";
|
md.style.color = settings.colors ? "transparent" : "inherit";
|
||||||
md.style.background = settings.colors ? "transparent" : "inherit";
|
md.style.background = settings.colors ? "transparent" : "inherit";
|
||||||
|
|
||||||
|
snippets.find(s => s.command == "/bonjour").insert = "Bonjour ,\n\n\n\nBien cordialement,\n" + settings.firstname;
|
||||||
|
snippets.find(s => s.command == "/hello").insert = "Hello ,\n\n\n\nKind regards,\n" + settings.firstname;
|
||||||
}
|
}
|
||||||
|
|
||||||
function checksaved()
|
function checksaved()
|
||||||
|
|
Loading…
Reference in New Issue