DrewNaylor / UXL-Launcher

An app launcher meant to launch Microsoft Office 2010, 2013, 2016, 2019 desktop software/apps, including ones from Office 365. Not associated with Microsoft.
Apache License 2.0
7 stars 1 forks source link

For now, the recent files thing could just be files successfully opened through File>Open... and I can figure out getting Windows recents later. #196

Open DrewNaylor opened 3 years ago

DrewNaylor commented 3 years ago

Still would need to implement the feature where it asks the user if they want to remove the file from the list if it can't find it.

Maybe the recent files list could be stored in an XML file in the folder where the config files go. That way clearing it only involves deleting the file, and when another file is added, the XML file can be re-created from a template in the resources.

Eventually I want this to allow for getting a list of recent documents tied to a Microsoft account by using Microsoft Graph. This would be optional, and this list would be in a separate menu so the user can have both on, one on and one off, or both off.

Configuration for the local one would involve whether it's on or off, how many files to keep track of, and an option to clear the recent files list. The Microsoft Graph one would have the option to have it on or off, an option to sign in to get the list (and a sign out option as well), maybe a way to say how many files to get if the API allows (otherwise it'll just be 10 or something, but I assume it would allow saying how many to get), and a way to clear the list (again, if the API allows it). Probably would have to have a privacy policy since the user is signing in to a third-party application. Preferably this would allow multiple accounts at once, but at the moment I'm not sure how that would work for this as I don't think even the official Office app allows that.

Refreshing the local/offline recently used list could be done after successfully opening a file as described above, but the Microsoft Graph one would have to refresh on a different schedule. Maybe on startup and every time that menu is opened? There would have to be an async thing to make sure it didn't lock up during the refresh.

Storing login stuff would be done with a hash of some kind stored somewhere safe. Would need to look into that more.

Clearing individual recent local files would be nice, maybe with a right-click menu on each menu item. Having an option to show a messagebox when clearing recent files would be a good idea so people can turn it off if they feel comfortable.

DrewNaylor commented 3 years ago

Adding this to 4.0 for now since it has some further-out stuff, but moving the Microsoft Graph stuff to another issue may be a good idea. That way this can be moved to something like 3.5 instead.

DrewNaylor commented 3 years ago

Will this work? I can't figure it out in my head right now, and this may require theme engine changes.

https://mobile.codeguru.com/csharp/.net/net_general/creating-a-most-recently-used-menu-list-in-.net.html