Action

Straighten Quotes

Posted by agiletortoise, Last update about 1 year ago

Convert smart (slanted) quotes to straight quotes.

Steps

  • script

    // change quote type
    let s = editor.getSelectedText();
    
    s = s.replaceAll("“", "\"");
    s = s.replaceAll("”", "\"");
    s = s.replaceAll("‘", "'");
    s = s.replaceAll("’", "'");
    
    editor.setSelectedText(s);

Options

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