From ca5805ca90ef1e06e4cbeac04208e6e10b1d8453 Mon Sep 17 00:00:00 2001 From: Alexis Quintero Date: Sat, 12 Aug 2023 21:29:06 +0900 Subject: [PATCH] Exclude 'aria-readonly' in localSettings selector --- README.md | 2 +- src/utils/configuration.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f5a0424f..406ebbf9 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ vim.g.firenvim_config.localSettings["https?://[^/]+\\.co\\.uk/"] = { takeover = The `selector` attribute of a localSetting controls what elements Firenvim automatically takes over. Here's the default value: ```lua -vim.g.firenvim_config.localSettings['.*'] = { selector = 'textarea:not([readonly]), div[role="textbox"]' } +vim.g.firenvim_config.localSettings['.*'] = { selector = 'textarea:not([readonly], [aria-readonly]), div[role="textbox"]' } ``` If you don't want to use Firenvim with rich text editors (e.g. Gmail, Outlook, Slackā€¦) as a general rule, you might want to restrict Firenvim to simple textareas: diff --git a/src/utils/configuration.ts b/src/utils/configuration.ts index 11345659..88529f27 100644 --- a/src/utils/configuration.ts +++ b/src/utils/configuration.ts @@ -112,7 +112,7 @@ export function mergeWithDefaults(os: string, settings: any): IConfig { content: "text", priority: 0, renderer: "canvas", - selector: 'textarea:not([readonly]), div[role="textbox"]', + selector: 'textarea:not([readonly], [aria-readonly]), div[role="textbox"]', // "takeover": "always" | "once" | "empty" | "nonempty" | "never" // #265: On "once", don't automatically bring back after :q'ing it takeover: "always",