fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.34k stars 99 forks source link

How to Clear History and Cookies After the Browser Closes? #702

Open ghost opened 2 years ago

ghost commented 2 years ago

I want vimb to clear all history, logins, cookies and stuff like that when all vimb windows have been closed.

fanglingsu commented 2 years ago

@amarakon You can use the :cleardata or :cl to clear all memory-cache, disk-cache, offline-cache, session-storage, local-storage, indexeddb-databases, plugin-data, cookies and hsts-cache. Note that this affects all running instances of vimb. But there is at the time no logic to do something in vimb which is only executed if all windows are closed. The instances of vimb run as separate processes and do nto know anything about each other. So if you want to do this only if all windows are closed you have to do this outside of vimb. But in this case you have to launch vimb to run the :cleardata command. Not tested, but this might be possible with vimb -C 'cleardata' -C 'quit' which runs the command an quits vimb right after.

ghost commented 2 years ago

Yep it works. But the only thing it didn't clear was the sites I've visited, and I want it to clear that too.

fanglingsu commented 2 years ago

@amarakon You mean the entries added in .local/share/vimb/history. You could delete this file by yourself. And to be save you should also delete the .local/share/vimb/closed which stores the last closed-max-items closed urls. Or you could :set closed-max-items=0 so that there is no url written to the file when vimb is closed.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity within the last 60 days.