edit icon indicating copy to clipboard operation
edit copied to clipboard

Add recently opened files to the Document Picker

Open egvijayanand opened this issue 6 months ago • 5 comments

  • Add recently opened files to the File menu

egvijayanand avatar May 26 '25 13:05 egvijayanand

I agree, but let's put them into the Document Picker instead, because that's consistent with VS Code. We can consider changes to the File Picker afterward, if anything (IMO).

lhecker avatar May 26 '25 16:05 lhecker

Where will the list of files be maintained? Will this be only in memory in the current process or written to disk in the user's %APPDATA% or similar folder? What happens if the user is running edit in multiple different sessions, are the list of files visible to all sessions?

rhubarb-geek-nz avatar May 26 '25 16:05 rhubarb-geek-nz

That's not something I'll personally think about just yet. If anyone wants to make suggestions for how to design this, please do, and we can pick it up once we implement this feature.

lhecker avatar May 26 '25 19:05 lhecker

nano keeps such a list in ~/.local/share/nano/filepos_history where each line is "path/to/file line column". Very handy!

The Windows shell also has OpenSaveMRU and CreateMRUList.

stianhoiland avatar May 28 '25 13:05 stianhoiland

Can we have a text file where each line would be the path and we can have a limit for that as well. Then in the document picker we read this file and load these paths for the user to select and once selected we can update it in the file.

JustinLakra avatar Jun 17 '25 19:06 JustinLakra