parent
fd7225123b
commit
957c3f85dd
@ -1,5 +1,5 @@
|
||||
<%*
|
||||
const {templaterFunc} = this.app.plugins.plugins["CustomJS"].customJS
|
||||
const {templaterFunc} = this.app.plugins.plugins["customjs"].api
|
||||
templaterFunc.createNewFile(tp, tp.frontmatter.ChildrenType)
|
||||
tp.file.content.replace(/[\w\W]+?\n+?/,"")
|
||||
%>
|
@ -0,0 +1,21 @@
|
||||
<%*
|
||||
const listName = await tp.system.suggester(["Groceries", "Health", "Household"], ["Groceries", "Health", "Household"])
|
||||
let tempResult = "";
|
||||
let num = 0;
|
||||
const {update} = this.app.plugins.plugins["metaedit"].api;
|
||||
const {getPropertyValue} = this.app.plugins.plugins["metaedit"].api;
|
||||
let itemList = await getPropertyValue(listName, tp.file.find_tfile("@Shopping list"))
|
||||
|
||||
for (let i = 0; i < itemList.length; i++) {
|
||||
let amount = itemList[i].split(" ")[0] + " " + num.toString();
|
||||
let radicale = itemList[i].replace(itemList[i].split(" ")[0] + " " + itemList[i].split(" ")[1], "");
|
||||
if (!i) {
|
||||
tempResult = amount + radicale
|
||||
} else
|
||||
tempResult = tempResult + ", " + amount + radicale
|
||||
}
|
||||
}
|
||||
|
||||
await update(listName, tempResult, tp.file.find_tfile("@Shopping list"));
|
||||
|
||||
%>
|
@ -0,0 +1,88 @@
|
||||
---
|
||||
|
||||
Alias: ["Shoppimg Admin"]
|
||||
Tag: ["Admin"]
|
||||
Date: 2021-10-25
|
||||
DocType: "Admin"
|
||||
Hierarchy: "NonRoot"
|
||||
TimeStamp:
|
||||
location:
|
||||
CollapseMetaTable: Yes
|
||||
|
||||
---
|
||||
|
||||
Parent:: [[@Shopping list|Shopping list]]
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
```button
|
||||
name Save
|
||||
type command
|
||||
action Save current file
|
||||
id Save
|
||||
```
|
||||
^button-ShoppingAdminNSave
|
||||
|
||||
 
|
||||
|
||||
# Shopping Admin
|
||||
|
||||
 
|
||||
|
||||
```ad-abstract
|
||||
title: Summary
|
||||
collapse: open
|
||||
Admin to dissociate the reset button from the actual shopping list.
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
```toc
|
||||
style: number
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### Reset buttons
|
||||
|
||||
 
|
||||
|
||||
```dataview
|
||||
const {shoppingFunc} = customJS
|
||||
shoppingFunc.resetList({app: app, dv: dv, that:this, theme: "to0", listOfIt: "Groceries"})
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
```dataview
|
||||
const {shoppingFunc} = customJS
|
||||
shoppingFunc.resetList({app: app, dv: dv, that:this, theme: "to0", listOfIt: "Health"})
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
```dataview
|
||||
const {shoppingFunc} = customJS
|
||||
shoppingFunc.resetList({app: app, dv: dv, that:this, theme: "to0", listOfIt: "Household" })
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### Header 2
|
||||
|
||||
 
|
||||
|
||||
Loret ipsum
|
||||
|
||||
 
|
||||
 
|
@ -0,0 +1,115 @@
|
||||
---
|
||||
|
||||
Alias: ["Wine"]
|
||||
Tag: ["Epicure"]
|
||||
Date: 2021-10-26
|
||||
DocType: "Personal"
|
||||
ChildrenType: ["Product", "Wine"]
|
||||
Hierarchy: "Root"
|
||||
location:
|
||||
CollapseMetaTable: Yes
|
||||
|
||||
---
|
||||
|
||||
Parent:: [[Lifestyle]]
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
```button
|
||||
name Create Note
|
||||
type append template
|
||||
action NewFile
|
||||
id CreateNote
|
||||
```
|
||||
^button-undefinedNewNote
|
||||
|
||||
```button
|
||||
name Save
|
||||
type command
|
||||
action Save current file
|
||||
id Save
|
||||
```
|
||||
^button-undefinedSave
|
||||
|
||||
 
|
||||
|
||||
# Folder map
|
||||
 
|
||||
|
||||
```ad-abstract
|
||||
title: Summary
|
||||
collapse: open
|
||||
This note enables to navigate in the 01.01 Life Orga section and find any Note in this Vault by Note or Tag
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
```toc
|
||||
style: number
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### Master Navigation
|
||||
 
|
||||
|
||||
```dataview
|
||||
Table Date as "Creation Date" from "Admin"
|
||||
Sort Date ascending
|
||||
```
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### Tag Navigation
|
||||
 
|
||||
|
||||
```dataview
|
||||
Table without id tags as "Tags" From "Admin"
|
||||
Flatten file.tags as tags
|
||||
Group by tags
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### TimeStamp check
|
||||
 
|
||||
|
||||
```dataview
|
||||
Table TimeStamp as "Time Stamp" from "Admin"
|
||||
Where TimeStamp > date(today) - dur(100 years)
|
||||
Sort TimeStamp ascending
|
||||
```
|
||||
|
||||
 
|
||||
|
||||
---
|
||||
|
||||
 
|
||||
|
||||
### High Level tasks
|
||||
|
||||
 
|
||||
|
||||
```tasks
|
||||
not done
|
||||
path includes Life Admin
|
||||
sort by due
|
||||
hide backlink
|
||||
hide task count
|
||||
```
|
||||
|
||||
 
|
||||
 
|
Loading…
Reference in new issue