Action

Toggle Focus Mode

Posted by @edgauthier, Last update about 2 years ago

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

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.