memo icon indicating copy to clipboard operation
memo copied to clipboard

Add option to collapse archived files

Open AndreiVernon opened this issue 6 months ago • 1 comments

The main purpose of this feature is to make memo compatible with the mpv manga reader script.

In its current state, memo will add an entry to the history log for every single page in a manga file, and when you try to open one from memo's menu, it will open only that page instead of the entire manga file.

When enabled, memo will only show the most recent entry for any archive. If you open one of these entries from memo's history menu, it will tell mpv to load the path to the archive, not the path to any specific file within the archive. This also allows mpv to auto-resume the manga file from where the reader left off.

This feature only changes the show_history code, so every page is still added to the history log.

AndreiVernon avatar Aug 24 '25 21:08 AndreiVernon

Thanks for the contribution,

I disagree that it's memo's job to solve the playlist issue. This is useful to more than just memo users. I wrote a script autoload-archive-hook.lua that fixes this issue, let me know if it works well for you.

I will welcome a feature that keeps only the latest entry for any given archive, but it has to:

  • Display and point to the inner file (no redirecting to the archive)
  • Integrate with the path_info system, the order of its parsing logic is deliberate and very important, and we must not do extra parsing outside of it
  • Not override the loadfile like in the current state of this PR

Name it something like hide_same_archive to be in line with hide_same_dir.

po5 avatar Sep 05 '25 02:09 po5