Due

Script key

Posted by macdrifter

Install

Details

Label Due
Voice Over
Script
// Script keys run short Javascripts
// For documentation and examples, visit:
// http://help.agiletortoise.com

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

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

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus