Use Fargo's New Scripting Tool to Quickly Add Your Favorite Icons to Headlines

Dave just recently released a new tool in which you can create a new Fargo menu with short javascript functions.

I know javascript from Adam, but I was able to create an easy script after looking at Eric's link headline script and Dave's list of "verbs." It allows me to quickly assign one of my more frequently used Font Awesome icons to a headline without having to either open the Edit Attribute dialog () or scroll through the many pages of the Choose Icon picker.

  • decimal

  • If you haven't already, create a new outline and call it menubar.

  • At the top headline, write something like Scripts. This will be the title of a new menu bar sitting to the right of Docs in Fargo.

  • Create a child node and call it Star.

  • Then create a child node for that node, and enter the following:

    • op.attributes.setOne("icon", "star-empty");
  • Refresh your browser to load the new menu.

  • In a different outline, click on a headline then choose Star from the Scripts menu.

This will work for any icon, you just need to sub out star-empty with the name for any other icon from the icon cheatsheet.

Last built: Tue, Mar 31, 2015 at 2:05 PM

By Jeffrey Kishner, Thursday, July 25, 2013 at 9:50 AM.