Lepton
Lepton copied to clipboard
New feature: offline mode
As stated in the title... But what's the definition of offline mode?
A minimum implementation would be to save the redux state to disk each time we perform a sync, and initialize the redux with said persistent state(if any) when launch.
- Access downloaded gists
- Read only mode?
- Save as a plain file or introduce a db? (A plain file (JSON) seems to be good enough in our case.)
IMO there should be a cache mechanism to cache gists in controllable disk space. For example, the users could configure how many GBs can be used to cache gists.
@gaocegege
I'm not sure whether Apple's sandbox mode will allow this if we want to publish Lepton to MAS. But it's a nice idea to think about:)
Netease Cloud Music is using the mechanism and I'm not sure whether I downloaded it from MAS :)
It delays strategy to user level, it's the best way, IMO.
We can leave more options for users to control if a snippet should be downloaded, such as using tags... Besides, I think issue #82 will be easier to implement if we have solved the storage problem. Just do a full text search seems okay.
Any updates on this ? It's pretty handy.
I'd love the ability to use lepton as an editor and save to local file.