Action Directory / 推特链接

Install

Enclose selected text in quotation marks.

Shared by

Script

var SelectedText = editor.getSelectedText();  //get selected text

var SelectedText = "\[@" + SelectedText + "\](https://mobile.twitter.com/" + SelectedText + "\)"; //enclose in quotes

editor.replaceSelection(SelectedText);