Customizing the Editor in Fugu

August 16, 2006 at 1:36 am | Author: jessie

When I changed hosts for my blog, it also meant that I could no longer just SMB the files around. I had to find an actual SFTP/SCP-client for my Macbook. A quick Google search turned up Cyberduck and Fugu. I arbitrarily chose Fugu. (Turns out this was the right decision. Dustin convinced me to try Cyberduck; version 2.6.1 crashed three times in a row while I was trying to type in the hostname. But I digress…)

Fugu is pretty slick, but it would only open files for editing using one of the preset editors, none of which I had. I decided to see if I could change the list of available editors to include TextEdit, since I was only editing basic CSS.

Turns out you can. Here’s how.

1. Right click on the Fugu application and choose “Show Package Contents”

picture_1.png

2. Navigate to Contents, Resources, ODBEditors.plist

picture_2.png

3. Open the ODBEditors.plist file in TextEdit. Scroll to the bottom of the file and either create a new entry or modify one of the existing entries. I modified the emacs entry, since I don’t plan on ever using it. This is what it should look like:

picture_3.png

4. Save the file and you’re good. Load up Fugu, click Fugu, Preferences. In the preference pane, click the Files icon. In the External Text Editor, choose the name of the editor you just created. In my case, TextEdit.

picture_4.png

Viola! You can now command-J to edit files with your chosen editor from Fugu.

Nearby Posts

 

3 comments

  1. jvence@gmail.com
    August 16, 2006 at 1:36 am
    1

    This is great but I’m getting permission error:

    /Applications/dev/Fugu.app/Contents/Resources/externaleditor /Applications//TextEdit.app “/private/tmp/Fugu/tmp.mr09ON/RUNNING.txt” “/root/RUNNING.txt”; exit
    execve /Applications//TextEdit.app failed: Permission denied
    /Applications//TextEdit.app exited with 2

  2. 2

    Hey jvence,

    Looks like you have too many “//” in your “/Aplications//TextEdit.app” string. Remove the duplicate / and you should be good. You probably mistyped it while you were editing the ODBEditors.plist file.

  3. 3

    Thanks for the hint Jessie! You can also change the order they appear, so your favourite editors appear at the top of the list – personally, I’d have TextEdit, Bluefish and vi as my top 3.

    This doesn’t matter so much, but it’s worth a mention: A fully correct TextEdit entry looks like this:


    ODBEditorBundleID
    com.apple.TextEdit
    ODBEditorCreatorCode
    ttxt
    ODBEditorLaunchStyle
    0
    ODBEditorName
    TextEdit

    If you’re not sure of an app’s creator code, just Google it! :-)

Leave a Reply