mirror of
https://github.com/bramses/bramses-highly-opinionated-vault-2023.git
synced 2025-02-26 07:53:55 +00:00
vault backup: 2022-12-11 01:57:02
This commit is contained in:
@@ -13,8 +13,8 @@ module.exports = async function createProject(params) {
|
||||
|
||||
// add a checkbox prompt to see if for optional settings
|
||||
const settings = await params.quickAddApi.checkboxPrompt(
|
||||
["Create a Kanban", "Create a Scratchpad", "Add Readwise Dataview"],
|
||||
["Create a Kanban", "Create a Scratchpad", "Add Readwise Dataview"]
|
||||
["Create a Kanban", "Create a Scratchpad", "Add Resources Dataview"],
|
||||
["Create a Kanban", "Create a Scratchpad", "Add Resources Dataview"]
|
||||
);
|
||||
|
||||
// Get the project name
|
||||
@@ -34,10 +34,10 @@ module.exports = async function createProject(params) {
|
||||
await params.app.vault.create(`${absolutePath}/Scratchpad.md`, "");
|
||||
}
|
||||
|
||||
if (settings.includes("Add Readwise Dataview")) {
|
||||
if (settings.includes("Add Resources Dataview")) {
|
||||
await params.app.vault.create(
|
||||
`${absolutePath}/Readwise Resources.md`, `\`\`\`dataview
|
||||
list from "Readwise"
|
||||
`${absolutePath}/Resources.md`, `\`\`\`dataview
|
||||
list
|
||||
where contains(projects, "${userInput}")
|
||||
\`\`\`\n\n`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user