Pages: [1]   Go Down
Author Topic: [Patch] Recently opened files patch for Editor  (Read 1087 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

* open-recent.patch (4.71 KB - downloaded 9 times.)
« Last Edit: July 10, 2012, 10:10:31 am by ericzundel » Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 78
Posts: 1720
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quick question, how do you apply the patch?
Logged

~Tom~

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 - downloaded 6 times.)
Logged

Pages: [1]   Go Up
Jump to: