Amplejots

name

Amplejots

icon

edit

instructions

Features:
1. Create next day's jot
2. Navigate to a random jot
3. Navigate to the jot for a year in the past

Creating next day's jot
Visit Jots Mode and run the plugin from the Jots Suggestions that appear at the bottom of your Daily Jot. The suggestion will disappear if a Jot already exists for the upcoming day. The first time you run the plugin, you will have to select the template to pull from.

Navigate to a jot
Simply use Cmd-O or Cltr-O to bring up the Quick Open menu, then type in "Amplejots" and choose one of the options. Currently you can navigate to the jot corresponding to a year in the past or to a random jot.

setting

Source note UUID


linkChange log

January 18th, 2024

"Create next day's jot" will now store and remember the chosen template;

template is also stored as a plugin setting

October 26th, 2023

New appOption: navigate to random jot

New appOption: navigate to one year ago

October 6th, 2023

Fix: properly import empty tasks


repo: https://github.com/lukkes/amplejots


linkCode block

{
settings: {
sourceNoteUUID: null,
jotTag: "daily-jots",
},
 
dailyJotOption: {
async "Create tomorrow's jot" (app, noteHandle) {
const newNoteName = this._getNextDaysName(noteHandle.name);
console.log(newNoteName);
 
const newNote = await app.createNote(newNoteName, noteHandle.tags);
console.log(newNote);
 
const newNoteHandle = await app.findNote({uuid: newNote});
console.log(JSON.stringify(newNoteHandle));
 
const url = `https://www.amplenote.com/notes/${ newNote }`;
// const url = `https://www.amplenote.com/notes/new`;
 
if (!app.settings["Source note UUID"]) {
const noteHandle = await app.prompt(
"No template selected yet. Please choose one from this menu",
{
inputs: [
{
label: "Template note",
type: "note"
}
]
 
}
);
if (!noteHandle) return;
this.settings.sourceNoteUUID = noteHandle.uuid;
await app.setSetting("Source note UUID", noteHandle.uuid);
}
const sourceNote = await app.findNote({uuid: app.settings["Source note UUID"]});
console.log(JSON.stringify(sourceNote));
 
let sourceContents = await app.getNoteContent(sourceNote);
console.log(sourceContents);
 
// Make sure we handle empty tasks bug manifesting October 2023
sourceContents = sourceContents.replace("\\