1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-07 01:15:49 +01:00

Add :sanitize, 'sanitizetimespan' and 'sanitizeitems'.

This commit is contained in:
Doug Kearns
2009-09-02 23:43:50 +10:00
parent 75f2481523
commit 11b54186d5
7 changed files with 384 additions and 23 deletions

View File

@@ -319,6 +319,8 @@ section::Options[option-index]
||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence +
||'private'|| Set the 'private browsing' option +
||'runtimepath'|| List of directories searched for runtime files +
||'sanitizeitems'|| The default list of private items to sanitize +
||'sanitizetimespan'|| The default sanitizer time span +
||'scroll'|| Number of lines to scroll with [m]<C-u>[m] and [m]<C-d>[m] commands +
||'shell'|| Shell to use for executing [c]:![c] and [c]:run[c] commands +
||'shellcmdflag'|| Flag passed to shell when executing [c]:![c] and [c]:run[c] commands +

View File

@@ -664,6 +664,48 @@ exist, Vimperator will set it to match this value.
____
|\'si'| |\'sanitizeitems'|
||'sanitizeitems' 'si'|| stringlist
____
(default: "history,formdata,cookies,cache,sessions,commandline")
The default list of private items to sanitize.
[frame="topbot",grid="none",cols="1,4"]
|===============================================================================
|*cache* |Cache
|*commandline* |Command-line history
|*cookies* |Cookies
|*downloads* |Download history
|*formdata* |Saved form and search history
|*history* |Browsing history
|*offlineapps* |Offline website data
|*passwords* |Saved passwords
|*sessions* |Authenticated sessions
|*sitesettings* |Site preferences
|===============================================================================
____
|\'sts'| |\'sanitizetimespan'|
||'sanitizetimespan' 'sts'|| number (default: 1)
____
The default sanitizer time span. Only items created within this timespan are
deleted.
Note: This only applies to *cookies*, *history*, *formdata*, and *downloads*.
[frame="topbot",grid="none",cols="1,10"]
|===============================================================================
|*0*|Everything
|*1*|Last hour
|*2*|Last two hours
|*3*|Last four hours
|*4*|Today
|===============================================================================
____
|\'scr'| |\'scroll'|
||'scroll' 'scr'|| number (default: 0)
____

View File

@@ -47,6 +47,21 @@ Repeat last [c]:!{cmd}[c].
________________________________________________________________________________
|:sa| |:sanitize| +
||:sa[nitize] [-timespan={timespan}] {item} ...|| +
||:sa[nitize]! [-timespan={timespan}]|| +
________________________________________________________________________________
Clear private data items. Where {item} ... is a list of private items to
delete. These may be any of the items valid for 'sanitizeitems'.
If [!] is specified then 'sanitizeitems' is used for the list of items to
delete.
If {timespan} is specified then only items within that timespan are deleted,
otherwise the value of 'sanitizetimespan' is used.
________________________________________________________________________________
|:sil| |:silent| +
||:sil[ent] {command}||
________________________________________________________________________________
@@ -56,7 +71,7 @@ history.
________________________________________________________________________________
|:verb| |:verbose +
|:verb| |:verbose| +
||:[count]verb[ose] {command}||
________________________________________________________________________________
Execute a command with 'verbose' set to [count]. If [count] is not specified