Skip to content

Instantly share code, notes, and snippets.

@jkishner
Created November 19, 2013 19:30
Show Gist options
  • Save jkishner/7551081 to your computer and use it in GitHub Desktop.
Save jkishner/7551081 to your computer and use it in GitHub Desktop.
This is a simple script for the menubar outline in Fargo.io that will split a headline into multiple sections. Insert a ^ wherever you want the headline split, then run the script. The text before the first ^ will stay on that line. The text after each additional ^ will be added immediately below the previous headline.
split x times
var line = op.getLineText();
var tagArray = line.split("^");
op.setLineText(tagArray[0]);
for (var i=1; i < tagArray.length; i++) {
op.insert (tagArray[i], down);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment