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