title | allDay | date | completed | tags |
---|---|---|---|---|
<% tp.file.title %> |
true |
<% tp.date.now() %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'You need to paste it into the code file called "ThisOutlookSession". | |
'IMPORTANT You'll need to change the text YOUR_ACCESS_TOKEN to your Access Token that you | |
'you got from https://www.pushbullet.com/account | |
Const vbDoubleQuote As String = """" 'represents 1 double quote (") | |
Const vbSingleQuote As String = "'" 'represents 1 single quote (') | |
Private Sub Application_Reminder(ByVal Item As Object) | |
Dim Title As String | |
Dim Body As String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
public class MyTree<K, V> : Dictionary<K, MyTree<K, V>> | |
{ | |
public V Value { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = async function moveFilesWithTag(params) { | |
const { | |
app, | |
quickAddApi: { suggester, yesNoPrompt }, | |
} = params; | |
/* ... */ | |
const { workspace, vault } = this.app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%* | |
let originalTitle = tp.file.title | |
if (originalTitle.startsWith("Untitled")) { | |
originalTitle = tp.file.creation_date("YYYY-MM-DD") | |
} | |
title = await tp.system.prompt("Title"); | |
await tp.file.rename(`${originalTitle} ${title}`); | |
tR += "---" | |
%> | |
title: <%* tR += `${title}` %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: <% tp.file.title %> | |
allDay: false | |
date: <% tp.file.creation_date("YYYY-MM-DD") %> | |
startTime: <% tp.file.creation_date("HH:mm") %> | |
endTime: <% tp.file.creation_date("HH:mm") %> | |
completed: null | |
tags: [] | |
--- |
function callout(text, type) {
const allText = `> [!${type}]\n` + text;
const lines = allText.split('\n');
return lines.join('\n> ') + '\n'
}
const query = `
not done
<%* let parsed = moment(tp.file.title.slice(0, 10)); parsed.isValid(); if(parsed.isValid()) { tR += parsed.format("YYYY-MM-DD"); } else{ tR += "no date" } %>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%* | |
let originalTitle = tp.file.title | |
title = await tp.system.prompt("Title"); | |
await tp.file.rename(`${originalTitle} ${title}`); | |
tR += "---" | |
%> | |
title: <%* tR += `${title}` %> | |
allDay: false | |
date: <% tp.file.creation_date("YYYY-MM-DD") %> | |
startTime: <% tp.file.creation_date("HH:mm") %> |