sienori / Tab-Session-Manager

WebExtensions for restoring and saving window / tab states
https://tab-session-manager.sienori.com/
Mozilla Public License 2.0
1.91k stars 187 forks source link

Feature Suggestion: Session Dedupe #619

Open perXautomatik opened 4 years ago

perXautomatik commented 4 years ago

**Is your feature request related to a problem? Yes and no, when restoring old sessions from backup and or merging with other services, duplicates does occur. I find it rather peaceful to look for dupes and managing my sessions, a bit like gardening I assume, doesn't make it less of a hassle though.

Describe the solution you'd like simply list duplicate sessions as a search result so it's easier to delete them

Now I do know the term "dupe" is somewhat subjective in this circumstance.

Absolute easiest's probably to make comparison of the JSON sub dataset into a string and make a string compare (excluding unique identifiers such as list position and date). Would match title, URL, position, windows, tags etc. ListA() = ListB()

additionally, it could be enhanced further with search modes;

subset detection - ListA() ⊇ ListB() match only URLs - ListA(URL) = ListB(URL)

Of course this might be rather resource heavy to make match of each session against each other session at least n^2, possibly better to have a SQLite interface and an index to match against.

Describe alternatives you've considered import and export of sessions as a CSV or similarly DB consumer friendly format so one could do this one self.

Additional context Add any other context or screenshots about the feature request here.

the-moog commented 1 year ago

See also https://github.com/sienori/Tab-Session-Manager/issues/1018