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
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
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
# Forked from https://bikeguide.hogbaysoftware.com/customizing-bike/creating-scripts#today-script | |
# I modified each day’s label format to date +'%a, %B %e, %Y' so I can do fuzzy searches for dates like Sun Sep 24. | |
# The script rolls over unfinished tasks from the previous day to the next | |
set yearName to do shell script "date +'%Y'" | |
set yearId to do shell script "date +'%Y'" & "/00/00" | |
set monthName to do shell script "date +'%B'" | |
set monthId to do shell script "date +'%Y_%m'" & "/00" | |
set dayName to do shell script "date +'%a, %B %e, %Y'" | |
set dayId to do shell script "date +'%Y_%m_%d'" |