support icon indicating copy to clipboard operation
support copied to clipboard

Historia - Auto-delete history per hour

Open jonfre opened this issue 6 years ago • 5 comments

Auto-delete history per hour, for example to keep only the last x hours. This would be a unique feature I've never seen. Elsewhere it's always days.

jonfre avatar Nov 24 '18 21:11 jonfre

That is possible. I have set Historia to make the deletions when Firefox is idle. That way it wont affect Firefox performance.

Searching and deleting History items in Firefox is a very slow and resource intensive process. It is evident once browser history is opened and deletion of 1000 entries is attempted. Browser almost hangs for little while. That was actually one of the reasons I wrote Historia.

I am concerned that in order to do deletion based on hours, the process has to run too many times and/or miss the hours deadline when browser hasn't been idle for a while.

erosman avatar Nov 25 '18 06:11 erosman

Ok, IMO that's an acceptable compromise. I suppose the more often it runs the quicker it runs each time.

Maybe a menu option to force clean of history due for deletion. Maybe idle time should be a setting too. Or at least be aware of it's value.

jonfre avatar Nov 25 '18 09:11 jonfre

Ok, IMO that's an acceptable compromise. I suppose the more often it runs the quicker it runs each time.

That depends on how large the history database is. Many (myself included) only use Historia to delete certain entries but keep the rest. It is primarily signed for that purpose of deleting selected entries while keeping others.

Are you referring to Delete Recent History or Auto-Delete History? Do you mean you want to delete EVERYTHING older than (let's say) 3 hours ago? On the first run, with a large history, it can lock up the browser for many many minutes.

Maybe a menu option to force clean of history due for deletion.

Do you mean a delete all? That is also possible and should be a lot faster and should take less resources since there is no find/delete.

Maybe idle time should be a setting too. Or at least be aware of it's value.

That is set by browser API and extension has no control over it. All extension can do is wait for browser to announce that it is idle and then run the desired function.

PS. I have not worked on Historia for a long while but I will consider all suggestions and requests for the next upgrade.

erosman avatar Nov 25 '18 09:11 erosman

Ok, yes this plugin has a lot of great functions.

I'm referring to Auto delete history. I'd like to keep the last x hours. Delete all older.

In Firefox there's an option to delete history on exit. That would do it. The problem is the open tabs get lost.

On performance, yes that's a problem, especially if the user is unaware and gets upset (already happend).

  • Maybe a confirm dialog with a warning.
  • Maybe delete a smaller number of items each idle until limit reached. But that might be hard for users to understand ("My history is not deleted!").
  • Or trigger on exit.

Just some thoughts.

jonfre avatar Nov 30 '18 17:11 jonfre

OK.. Let me see what can be done when I work on the next upgrade.

erosman avatar Nov 30 '18 18:11 erosman