Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsers and state in content #962

Merged
merged 11 commits into from Sep 4, 2018

`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.
  • Loading branch information...
saulrh committed Sep 1, 2018
commit e4757a72a0481b94b9eb3e5066641ad88dd193a4
@@ -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.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.