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
<%* | |
// | |
// updated: 2022-09-26 | |
// | |
// Script adds a Command Palette command to open a file | |
// | |
// Install: | |
// 1. Add this text to a markdown file in your Templater "templates" folder | |
// 2. In templater settings, add the file you created in step 1 to the Startup section of Templater Settings |
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
/* See Tweet thread for info on the use of this file: https://twitter.com/TfTHacker/status/1588781787865808897?s=20&t=iDq6L-u4SHnJ5UfN0r7yzQ */ | |
/* I am not a CSS dude, so no promises this is well written CSS */ | |
.nav-folder-title { | |
font-weight: 600 !important; | |
color:steelblue; | |
} | |
[data-path="Teaching"] > .nav-folder-title-content::before { |
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
export type Side = 'top' | 'right' | 'bottom' | 'left'; | |
export interface CanvasData { | |
nodes: (CanvasFileData | CanvasTextData | CanvasLinkData)[]; | |
edges: CanvasEdgeData[]; | |
} | |
export interface CanvasNodeData { | |
id: string; | |
x: number; |
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
// Widget for iOS using the Scriptable app | |
// Uses Readwise API for pulling back random highlights. | |
// This duplicates the Readwise widget, so there is no additional value | |
// I did this as a learning exercize. | |
let accessToken = args.widgetParameter ? args.widgetParameter : "Your token here if you are testing, otherwise add it in the widget" | |
let headers = { "Authorization": "Token " + accessToken }; | |
function getRandomInt(max) { |
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
<%* | |
/* | |
Updated: 9/20/2022 | |
Author: TfTHacker | |
Gist: https://gist.github.com/TfTHacker | |
Twitter: https://twitter.com/TfTHacker | |
Requirements: Templater Plugin for Obsidian | |
Description: This script performs the following actions: | |
1. Moves current file to the archive folder (defined in the variable archivePath) | |
if archivePath is null, a folders in the vault will be presented for selection |
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
```dataviewjs | |
// find dates based on format [[YYYY-MM-DD]] | |
const findDated = (task)=>{ | |
if( !task.completed ) { | |
task.link = " " + "[[" + task.path + "|*]]"; | |
task.date=""; | |
const found = task.text.match(/\[\[([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))\]\]/); | |
if(found) task.date = moment(found[1]); | |
return true; | |
} |
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
<%* | |
fastStart = async (filename, delayInSecond) => { | |
if (tp.file.exists(filename)) { | |
const f = tp.file.find_tfile(filename); | |
let plugins = (await app.vault.read(f)).split(/\r?\n/); | |
setTimeout(async () => { | |
plugins.forEach(async (p) => await app.plugins.enablePlugin(p)) | |
}, delayInSecond * 1000) | |
} | |
} |
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
<% Object.values(app.plugins.manifests).map(p=>p.id).sort((a,b)=>a.localeCompare(b)).join('\n') %> |
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
<%* | |
/* | |
# Hypothes.idian a templater script for retrieving annotations from Hypothes.is | |
Dev: TfTHacker https://twitter.com/TfTHacker | |
# Prerequisites: | |
+ Templater plugin by https://github.com/SilentVoid13/Templater | |
+ Free Hypothes.is developer token from: https://hypothes.is/account/developer | |
+ This script will prompt you for his token and save it to a file called "hypothesis config.md" | |
+ This file store your configuration and can be located any where in your vault. |
OlderNewer