Add recently opened files to the Document Picker
- Add recently opened files to the File menu
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).
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?
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.
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.
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.