You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Electron, firefox and chrome support is a mess, and I'm not even sure if I am doing it correctly or not.
289
+
> Feel free to help out if you know better about this...
290
+
287
291
GoVim includes built-in support for Electron apps (VS Code, Windsurf, Slack, etc.) and Chromium browsers.
288
292
289
293
-`accessibility.electron_support.enable` toggles automatic enabling of Electron accessibility hooks for legacy apps.
290
294
-`accessibility.electron_support.additional_bundles` accepts exact bundle IDs or `prefix*` wildcards for extra Electron apps that require manual accessibility.
291
295
296
+
Built-in enabled apps:
297
+
298
+
-`org.mozilla.firefox` - Firefox
299
+
-`com.microsoft.VSCode` - VS Code
300
+
-`com.exafunction.windsurf` - Windsurf
301
+
-`com.todesktop.230313mzl4w4u92` - Cursor
302
+
-`com.tinyspeck.slackmacgap` - Slack
303
+
-`com.spotify.client` - Spotify
304
+
-`md.obsidian` - Obsidian
305
+
- For other apps, you can add them to `accessibility.electron_support.additional_bundles` in your config, or just submit a PR to add into the source
306
+
307
+
Note that you don't have to add chromium bundles here. To support it, you need to:
308
+
309
+
1. Go to `chrome://accessibility`
310
+
2. Turn on `Native accessibility API support`
311
+
3. Turn on `Web accessibility`
312
+
313
+
> [!NOTE]
314
+
> Not sure if there's a better way to do this... feel free to help out!
315
+
292
316
## CLI Usage
293
317
294
318
GoVim provides a comprehensive CLI with IPC (Inter-Process Communication) for controlling the running daemon.
Copy file name to clipboardExpand all lines: configs/default-config.toml
+3-25Lines changed: 3 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -38,35 +38,14 @@ scrollable_roles = [
38
38
# The roles defined here are ADDED to the global roles above (not replaced)
39
39
# To find an app's bundle ID, run: osascript -e 'id of app "AppName"'
40
40
41
-
#Example: Add custom roles for Safari
41
+
#For example, in `Mail.app`, lots of element are `AXStaticText` and they should be clickable. In this case, we don't want to add to the global one, as it will causes lots of unclickable hints, especially in browser space.
Copy file name to clipboardExpand all lines: internal/accessibility/accessible_apps.go
+10-33Lines changed: 10 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,15 @@ package accessibility
2
2
3
3
import"strings"
4
4
5
-
var (
6
-
// KnownElectronPrefixes lists bundle identifier prefixes commonly backed by Electron.
7
-
KnownElectronPrefixes= []string{
8
-
"com.microsoft.vscode",
9
-
"com.microsoft.vscodeinsiders",
10
-
"com.slack.",
11
-
"com.github.",
12
-
"com.todesktop.",
13
-
"com.zoom.",
14
-
"md.obsidian",
15
-
}
16
-
17
-
// KnownElectronExact matches bundle identifiers observed to require manual accessibility.
18
-
KnownElectronExact= []string{
19
-
"com.sindresorhus.helium",
20
-
"com.sindresorhus.helium2",
21
-
"com.tinyspeck.slackmacgap",
22
-
"com.microsoft.teams",
23
-
"com.exafunction.windsurf",
24
-
}
25
-
)
5
+
varKnownElectronBundles= []string{
6
+
"org.mozilla.firefox", // NOTE: why is this here? It's not an electron app, but the same logic to enable `AXEnhancedUserInterface`. Put it here first until we have a better manager for this.
7
+
"com.microsoft.VSCode",
8
+
"com.exafunction.windsurf",
9
+
"com.todesktop.230313mzl4w4u92",
10
+
"com.tinyspeck.slackmacgap",
11
+
"com.spotify.client",
12
+
"md.obsidian",
13
+
}
26
14
27
15
// ShouldEnableElectronSupport determines if the provided bundle identifier
28
16
// should have Electron accessibility manually toggled based on defaults and
0 commit comments