Lepton icon indicating copy to clipboard operation
Lepton copied to clipboard

New feature: offline mode

Open hackjutsu opened this issue 8 years ago • 7 comments

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.

hackjutsu avatar Jan 17 '17 21:01 hackjutsu

  1. Access downloaded gists
  2. Read only mode?
  3. Save as a plain file or introduce a db? (A plain file (JSON) seems to be good enough in our case.)

hackjutsu avatar Mar 08 '17 23:03 hackjutsu

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 avatar Mar 09 '17 00:03 gaocegege

@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:)

hackjutsu avatar Mar 09 '17 01:03 hackjutsu

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.

gaocegege avatar Mar 09 '17 01:03 gaocegege

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.

SilverBut avatar May 01 '17 19:05 SilverBut

Any updates on this ? It's pretty handy.

ghost avatar Nov 07 '18 20:11 ghost

I'd love the ability to use lepton as an editor and save to local file.

alexeldeib avatar Sep 28 '19 03:09 alexeldeib