[Patch] Recently opened files patch for Editor

I've always wanted a feature to be able to pull up recently opened files. Here is a patch that adds this to the File menu of the editor:

Created an issue in the google code issue tracker:

http://code.google.com/p/arduino/issues/detail?id=979

EDIT: This patch is broken (I broke it when I added truncating file names), see below

open-recent.patch (4.71 KB)

Quick question, how do you apply the patch?

Hi Tom,

I don't know what your background is, but to give a broad outline, you have to apply to the java source downloaded from github then rebuild the Arduino project.

http://code.google.com/p/arduino/wiki/GitandGithubGuideforArduinoDevelopment

To apply the patch, use the 'patch' command from the command line on unix, or cygwin. Or you can use the command 'git apply'

Typical usage would be:

$ cd
$ patch -p1 open-recent-file.patch

Then use 'ant' to re-build the project.

You could also pull the branch I posted from github just compile it if you just want to see what it looks like.

Updated patch attached. Previous version saved filename with '...' characters in it, which you couldn't re-open, of course.

open-recent.patch (4.81 KB)