Add H5 & H4: Listen to Cursor/Line Context (#7)

* Update parser

Implied nodes caused ambiguity when querying for context. Now every line
is considered, even blank lines, to make the process much, *much* easier.

* Update pylex tests

* Add runCursorContext
This commit is contained in:
Jake Grossman
2021-11-16 11:35:38 -06:00
committed by GitHub
parent 6904b5dacf
commit 887f88eba6
10 changed files with 321 additions and 171 deletions

View File

@@ -46,7 +46,18 @@
{
"command": "mind-reader.selectTheme",
"title": "Select Theme"
},
{
"command": "mind-reader.runLineContext",
"title": "Run Line Context"
},
{
"command": "mind-reader.runCursorContext",
"title": "Run Cursor Context"
}
],
"keybindings": [
{
@@ -145,7 +156,7 @@
"LEGO® Education SPIKE™ Prime Set (45678)"
]
},
"mindreader.screenReader": {
"mindreader.reader.screenReader": {
"type": "string",
"description": "Specifies which screen reader to optimize for.",
"default": "NVDA",
@@ -160,6 +171,11 @@
"Apple VoiceOver (macOS)"
]
},
"mindreader.reader.contextWindow": {
"type": "number",
"description": "The number of words around the cursor to use when reading the cursor context",
"default": 1
},
"mindreader.connection.connectAutomatically": {
"type": "boolean",
"description": "Specifies whether to try to automatically detect and communicate with a connected Hub.",