Spaces→Hyphens

Script key

Posted by Zackary Corbett

Install

Details

Label Spaces→Hyphens
Voice Over
Script
var withSpaces = getSelectedText();
if(withSpaces != '' && withSpaces != null) {
    var withHyphens = withSpaces.replace(/ /g,'-');
    setSelectedText(withHyphens);
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus