Arduino Forum

Development => Other Software Development => Topic started by: ericzundel on Jul 08, 2012, 04:01 pm

Title: [Patch] Recently opened files patch for Editor
Post by: ericzundel on Jul 08, 2012, 04:01 pm
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:

  https://github.com/ericzundel/Arduino/compare/open-recent

  (http://ayershome.org/users/eric/software/open-recent-screenshot.png)

Created an issue in the google code issue tracker:

http://code.google.com/p/arduino/issues/detail?id=979 (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
Title: Re: [Patch] Recently opened files patch for Editor
Post by: Tom Carpenter on Jul 09, 2012, 04:13 pm
Quick question, how do you apply the patch?
Title: Re: [Patch] Recently opened files patch for Editor
Post by: ericzundel on Jul 10, 2012, 03:00 am
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 (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 <root of the source tree>
$ 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.
Title: Re: [Patch] Recently opened files patch for Editor
Post by: ericzundel on Jul 10, 2012, 05:12 pm
Updated patch attached. Previous version saved filename with '...' characters in it, which you couldn't re-open, of course.