Skip to content

Instantly share code, notes, and snippets.

@jkishner
Created November 19, 2013 15:23
Show Gist options
  • Save jkishner/7546986 to your computer and use it in GitHub Desktop.
Save jkishner/7546986 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 in 2. Insert a ^ where you want the headline split, then run the script. The text before the ^ will stay on that line. The text after the ^ will be added immediately below the headline. (To split a headline more than once, visit https://gist.github.com/jkishne…
split into 2
line = op.getLineText();
line1 = line.split('^')[0];
line2 = line.split('^')[1];
op.setLineText(line1);
op.insert (line2, down);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment