jEdit Community - Resources for users of the jEdit Text Editor
A Search function for Recent files (like Search History in Mozilla)
Submitted by paulflory on Thursday, 8 July, 2004 - 05:29
I hereforth propose that there be-eth a way to search recently open'd files.

Oftentimes we open and close files and afterwards wastefully rummage through our
memories and Recent Files lists to recall from whence those files came.

This post requests that recently opened files be searchable, as are visited URLs in web browsers; for example, Ctl-H in Mozilla or IE.

To further burnish the feature, throw in a way to view the dates/timestamps the files were visited. This way Jack can think/do: "Hmm.. I opened file 'earwig.xml' yesterday" then scroll to the files from yesterday and conveniently open earwig without taxing his brain.

Thanks,
Paul
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Then write one...
by Anonymous on Thu, 08/07/2004 - 19:15
I've written a macro that opens the last file that in my history (occasionally I accidentally double click on the tab without meaning to).

You could leverage this to perform your search:



void OpenLastBuffer() {
LinkedList list = BufferHistory.getHistory();
String msg = list.getFirst().path;

jEdit.openFile(view, msg);
return;
}

OpenLastBuffer();


I would take a look at implementing
public abstract class BufferListSet

Unfortunately, I'm not the greatest at Java, so I can't really help you out there. But you should be able to take the list from
BufferHistory.getHistory();
and shove it into there somehow.

Then, call this method with your SnR,

SearchAndReplace.setSearchFileSet(myCustomFileSet);.


If you manage this, let me know. This sounds very useful.


Good luck!

User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82347
Context Free Art (*.cfdg)   0.31   46054
JBuilder scheme   .001   18494
BBEdit scheme   1.0   18115
ColdFusion scheme   1.0   18023
R Edit Mode - extensive version   0.1   17472
Advanced HTML edit mode   1.0   16205
Matlab Edit Mode   1.0   16067
jEdit XP icons   1.0   15228
XP icons for jEdit   1.1   14292