Action

Next Marker

Posted by agiletortoise, Last update 16 days ago

Navigate to the next navigation marker in the editor, if available.

Navigation markers are defined by the syntax used in the draft, and are the same as the navigation markers in the Navigate menu.

Steps

  • script

    let [st, len] = editor.getSelectedRange();
    let marker = editor.navigationMarkerAfter(st + len);
    
    if (marker) {
    	editor.activate();
    	editor.setSelectedRange(marker.location, 0);
    }
    else {
    	app.displayInfoMessage("No marker found");
    }

Options

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