Go Down

Topic: [Patch] Recently opened files patch for Editor (Read 1 time) previous topic - next topic

ericzundel

Jul 08, 2012, 04:01 pm Last Edit: Jul 10, 2012, 05:10 pm by ericzundel Reason: 1
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

 

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

Tom Carpenter

Quick question, how do you apply the patch?
~Tom~

ericzundel

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 <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.

ericzundel

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

Go Up