Action

convert to flashcard

Posted by dhaysom, Last update over 3 years ago

To be used in conjunction with the review flashcards action

Adds the following tags to the current note:

  • flashcard
  • reviewYYYYMMDD – the current date
  • mastery1

Steps

  • script

    let now = new Date();
    
    function yyyymmdd(dateInput) {
        var y = dateInput.getFullYear();
        var m = dateInput.getMonth() + 1;
        var d = dateInput.getDate();
        var mm = m < 10 ? '0' + m : m;
        var dd = d < 10 ? '0' + d : d;
        return '' + y + mm + dd;
    }
    
    currentDate = yyyymmdd(now);
    
    draft.addTag("flashcard");
    draft.addTag("mastery1");
    draft.addTag("review"+currentDate);

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.