mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
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:
parent
d2d673aa86
commit
e4757a72a0
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue