blacklistadd now only needs DocStart since mode is per-document

Per-document modes might actually leave `TabLeft` completely unused by
most people, so we should be careful to not let that code start to
decay.

Sample tridactylrc turned out to not need updating

It looks like help docs don't reference this functionality anywhere
else, so this should be all the autocommand-related changes.
This commit is contained in:
Saul Reynolds-Haertle 2018-09-01 16:29:59 -07:00
parent d2d673aa86
commit e4757a72a0

View file

@ -2662,7 +2662,7 @@ export function autocmddelete(event: string, url: string) {
/**
* Helper function to put Tridactyl into ignore mode on the provided URL.
*
* Simply creates a DocStart and TabEnter [[autocmd]] that runs `mode ignore`.
* Simply creates a DocStart [[autocmd]] that runs `mode ignore`.
*
* Due to a Tridactyl bug, the only way to remove these rules once they are set is to delete all of your autocmds with `unset autocmds`.
*
@ -2671,7 +2671,7 @@ export function autocmddelete(event: string, url: string) {
*/
//#background
export function blacklistadd(url: string) {
;["DocStart", "TabEnter"].map(e => autocmd(e, url, "mode ignore"))
autocmd("DocStart", url, "mode ignore")
}
/** Unbind a sequence of keys so that they do nothing at all.