㎝ Delete
Critic markup delete

Script key: Critic markup delete

Posted by wrk3

Install

Details

Label ㎝ Delete
Voice Over Critic markup delete
Script
// Surround selection with Critic Markup delete syntax, 
// or insert syntax if no selection.
// Place cursor to insert deletion text if no selection.

var sel = getSelectedText();
var selRange = getSelectedRange();

if (!sel || sel.length == 0) {
  setSelectedText("{----}");
  setSelectedRange(selRange[0]+3,0);
}
else {
  setSelectedText("{--"+sel+"--}");
  setSelectedRange(selRange[0]+selRange[1]+6,0);
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus