Drafts Action Directory

Toggle Focus Mode

Posted by @edgauthier, Last update 4 months ago

Toggles Focus mode and displays a brief message indicating which one is active.

Install

Steps

  • script

    // Editor - Toggle Focus Mode
    editor.focusModeEnabled = !editor.focusModeEnabled;
    app.displayInfoMessage(editor.focusModeEnabled 
    	? "Focus Mode Enabled" 
    	: "Focus Mode Disabled");

Options

  • After Success Default
    Notification Error
    Log Level Error

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.