Meta
up:: π§ͺ Code Diary
type:: #log/code
tags:: #on/snippets
language:: Quickadd
program:: Obsidian
topics:: Coding
Example Quickadd Select Menu
Language:: Quickadd
Program:: Obsidian
Link::
Summary
An example from the Quickadd docs describing an implementation that handles Toggl integration, the menu is what interests me here.
Code
const menu = {
"π§ Learning & Skill Development": { // Sub-menu for Learning and Skill Development
togglProjectName: "Learning & Skill Development", // Name of your corresponding Toggl project
menuOptions: {
"β Note Making": "Note Making", // Preset time entry. The left part is what's displayed, and the right part is what Toggl gets.
"π Spaced Repetition": "Spaced Repetition", // So for this one, I would see 'π Spaced Repetition' in my menu, but Toggl would receive 'Spaced Repetition' as the entry.
"π Read Later Processing": "Read Later Processing",
"π¨βπ» Computer Science & Software Engineering": "Computer Science & Software Engineering",
}
},
"π€΄ Personal": {
togglProjectName: "Personal",
menuOptions: {
"ποΈββοΈ Exercise": "Exercise",
"π§Ή Chores": "Chores",
"π¨βπ¬ Systems Work": "Systems Work",
"π Weekly Review": "Weekly Review",
"π Monthly Review": "Monthly Review",
"β Planning": "Planning",
}
},
"π¨βπ School": {
togglProjectName: "School",
menuOptions: {
"π§ Machine Intelligence (MI)": "Machine Intelligence (MI)",
"πΎ Database Systems (DBS)": "Database Systems (DBS)",
"πββ Agile Software Engineering (ASE)": "Agile Software Engineering (ASE)",
"π» P5": "P5",
}
}
};
Explanation
Result
up:: π§ͺ Code Diary