note creation v0.0.2

main
Mel 3 years ago
parent 3705ca9c5c
commit b6f33bcddf

@ -9,8 +9,8 @@
"state": {
"type": "markdown",
"state": {
"file": "06.02 Investments/@Investment Task master.md",
"mode": "preview"
"file": "00.01 Admin/Templates/NewFile1.md",
"mode": "source"
}
}
}
@ -76,7 +76,7 @@
"state": {
"type": "backlink",
"state": {
"file": "06.02 Investments/@Investment Task master.md",
"file": "00.01 Admin/Templates/NewFile1.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -115,15 +115,15 @@
},
"active": "c1cbd199334b4022",
"lastOpenFiles": [
"00.01 Admin/Templates/NewFile1.md",
"01.01 Life Orga/@Life Organisation.md",
"01.02 Home/MRCK.md",
"02.01 London/@@London.md",
"02.02 Paris/@@Paris.md",
"03.02 Travels/@Travels.md",
"03.01 Reading list/@Reading master.md",
"06.02 Investments/@Investment Task master.md",
"06.02 Investments/@Investment master.md",
"05.02 Networks/@Networks.md",
"05.01 Computer setup/Apple processes.md",
"05.01 Computer setup/@Computer Set Up.md",
"04.01 lebv.org/@lebv.org.md",
"04.01 lebv.org/@lebv.org Tasks.md",
"03.03 Recipes/@@Recipes.md",
"03.03 Recipes/Simple Pasta.md",
"03.02 Travels/@Travels.md"
"05.02 Networks/@Networks.md"
]
}

@ -1,11 +1,12 @@
class templaterFunc {
createNewFile(tp) {
const fileName = await tp.system.prompt("File name")
const templateName = await tp.system.prompt("Template name") tp.file.create_new(tp.file.find_tfile("Template " + templateName), fileName, true, tp.file.folder())
const fileName = this.getUserInput(tp, "File name")
const templateName = this.getUserInput(tp, "File name")
return tp.file.create_new(tp.file.find_tfile("Template ") + templateName, filename, true, tp.file.folder())
}
getFileName(tp, prompt) {
const tempresult = await tp.system.prompt(prompt)
getUserInput(tp, promptScript) {
const tempresult = await tp.system.prompt(promptScript)
return tempresult
}
}

@ -4,6 +4,7 @@ Alias: [""]
Tag: [""]
Date: <% tp.date.now("YYYY-MM-DD") %>
DocType:
ChildrenType:
Hierarchy: "Root"
location:
CollapseMetaTable: Yes

@ -4,6 +4,7 @@ Alias: [""]
Tag: [""]
Date: <% tp.date.now("YYYY-MM-DD") %>
DocType:
ChildrenType: "Task"
Hierarchy: "Root"
TimeStamp:
location:

@ -1,5 +1,5 @@
<%*
const fileName = await tp.system.prompt("File name")
const templateName = await tp.system.prompt("Template name")
const templateName = await tp.system.suggester(tp.frontmatter.ChildrenType, tp.frontmatter.ChildrenType)
tp.file.create_new(tp.file.find_tfile("Template " + templateName), fileName, tp.file.folder())
%>

@ -0,0 +1,4 @@
<%*
const {templaterFunc} = tp.obsidian.plugins.plugins.CustomJS
templaterFunc.createNewFile(tp)
%>

@ -1,25 +1,25 @@
---
ChildrenType: ["Note", "Task", "Recipe"]
---
[Forum](https://forum.obsidian.md)
&emsp;
&emsp;
```button
name Create Note
type append template
action NewFile
color blue
templater true
```
```button
name Create Note
type append template
action NewFile1
action NewFile2
color blue
templater true
```
const {templaterFunc} = customJS
const {templaterFunc} = tp.obsidian.plugins.plugins.CustomJS
templaterFunc.createNewFile(tp)
%>
@ -27,6 +27,10 @@ const {templaterFunc} = customJS
templaterFunc.createNewFile(tp)
%>
const {templaterFunc} = app.plugins.plugins.CustomJS
templaterFunc.createNewFile(tp)
%>
const {templaterFunc} = customJS
templaterFunc.createNewFile(tp)
%>

@ -4,6 +4,9 @@ Alias: ["Life Orga", "Life Hacks"]
Tag: ["Admin", "Life","Goals"]
Date: 2021-08-12
DocType: "Personal"
ChildrenType:
- Task
- Note
Hierarchy: "Root"
TimeStamp: 2021-08-12
location: [51.514678599999996, -0.18378583926867909]

@ -96,6 +96,16 @@ Paris, Zürich, London
&emsp;
#### Misc
&emsp;
&emsp;
---
&emsp;
### Cadeaux
&emsp;

@ -4,6 +4,9 @@ Alias: ["Family organisation"]
Tag: ["Personal", "Family"]
Date: 2021-10-01
DocType: "Family"
ChildrenType:
- Note
- Task
Hierarchy: "Root"
CollapseMetaTable: Yes

@ -12,6 +12,11 @@ Alias: ["London"]
Tag: ["Personal", "Life"]
Date: 2021-10-04
DocType: "Personal"
ChildrenType:
- Place
- Note
- Task
- Product
Hierarchy: "Root"
CollapseMetaTable: Yes

@ -12,6 +12,11 @@ Alias: ["Paris"]
Tag: ["Personal", "Life"]
Date: 2021-10-04
DocType: "Personal"
ChildrenType:
- Place
- Note
- Task
- Product
Hierarchy: "Root"
CollapseMetaTable: Yes

@ -11,6 +11,10 @@ Alias: ["Reading", "Reading list"]
Tag: ["Lifestyle", "LifeHacks", "Book"]
Date: 2021-09-25
DocType: "Personal"
ChildrenType:
- Source
- Note
- Task
Hierarchy: "Root"
location: [51.514678599999996, -0.18378583926867909]
CollapseMetaTable: Yes

@ -5,6 +5,12 @@ Alias: ["Travels"]
Tag: ["Lifehacks", "Travel"]
Date: 2021-09-21
DocType: "Personal"
ChildrenType:
- Task
- Travel
- Note
- Place
- Product
Hierarchy: "Root"
location: [51.514678599999996, -0.18378583926867909]
CollapseMetaTable: Yes

@ -13,6 +13,9 @@ Alias: ["Recipes"]
Tag: ["Lifestyle", "Food", "Cooking"]
Date: 2021-10-20
DocType: "Personal"
ChildrenType:
- Task
- Recipe
Hierarchy: "Root"
location: [51.514678599999996, -0.18378583926867909]
CollapseMetaTable: Yes

@ -4,6 +4,8 @@ Alias: ["lebv.org Tasks"]
Tag: ["Family", "Web", "lebv", "Archive", "Email", "Website"]
Date: 2021-08-12
DocType: "Project"
ChildrenType:
- Task
Hierarchy: "Root"
TimeStamp:
location: [51.514678599999996, -0.18378583926867909]

@ -4,6 +4,9 @@ cssclass: recipeTable
Tag: ["Web", "Family", "lebv", "Email", "Archive", "Website"]
Date: 2021-08-12
DocType: "Project"
ChildrenType:
- Note
- Source
Hierarchy: "Root"
location: [51.514678599999996, -0.18378583926867909]
CollapseMetaTable: Yes

@ -5,6 +5,11 @@ Alias: ["ComputerSetup", "Computer Setup"]
Tag: ["Admin", "Computer", "App", "Cloud"]
Date: 2021-08-10
DocType: "Personal"
ChildrenType:
- Note
- Source
- Product
- Task
Hierarchy: "Root"
CollapseMetaTable: Yes

@ -4,6 +4,12 @@ cssclass: recipeTable
Tag: ["Computer", "Networks", "Web", "App"]
Date: 2021-08-28
DocType: "Personal"
ChildrenType:
- Server
- Task
- Note
- Source
- Product
Hierarchy: "Root"
location: [48.8570517, 2.3677354]
CollapseMetaTable: Yes

@ -4,6 +4,8 @@ Alias: ["Investment Task", "Investment Task master"]
Tag: ["Wealth", "Investment", "Equity", "Crypto", "Equity", "VC"]
Date: 2021-08-17
DocType: "Confidential"
ChildrenType:
- Task
Hierarchy: "Root"
TimeStamp:
location: [51.514678599999996,-0.18378583926867909]

@ -14,6 +14,9 @@ Alias: ["Investment Master"]
Tag: ["Wealth", "Investment", "Equity", "VC", "Crypto"]
Date: 2021-08-17
DocType: "Confidential"
ChildrenType:
- Investment
- Note
Hierarchy: "Root"
location: [51.514678599999996,-0.18378583926867909]
CollapseMetaTable: Yes

Loading…
Cancel
Save