Hackable Recent Files
Posted: 24.02.2025 21:23
I use the "File / Open recent" menu far more than "sessions" or "projects." Maybe I'm confused how CudaText works, but I ask anyway.
The only tweak for recent files is to clear the list. I want to change it. I want different groups swapping in and out. Only one group is active at a time. I don't want files in the active group opened, just listed. The purpose of a recent files group is to offer a list of files for opening, just as "Open recent" does. A group does not need lexers, bookmarks, cursors, or other metadata. I just want a hackable recent files list.
Now I may need a 'jq' or 'jaq' script to swap out the json stanza in history.json. If I can achieve the trick with any existing CudaText method (projects, sessions, custom menus, whatever), please let me know.
Thanks!
The only tweak for recent files is to clear the list. I want to change it. I want different groups swapping in and out. Only one group is active at a time. I don't want files in the active group opened, just listed. The purpose of a recent files group is to offer a list of files for opening, just as "Open recent" does. A group does not need lexers, bookmarks, cursors, or other metadata. I just want a hackable recent files list.
Now I may need a 'jq' or 'jaq' script to swap out the json stanza in history.json. If I can achieve the trick with any existing CudaText method (projects, sessions, custom menus, whatever), please let me know.
Thanks!