Name improvements, new tokens, new behavior.

Name improvements:
- runLineContext changed to "Get Line Scope".
- runCursorContext changed to "Get Words Under Cursor".

New tokens:
- STATEMENT: Replaces INDENT. Stores entire line of python statement, not including comments, in attr.
- COMMENT: Stores entire comment line in attr.
- INVALID: Invalid token, used when parser can't figure out a line. Should never be seen.

New behavior:
- Get Line Scope now reads out the comment your cursor is in.
- Implemented fractional indentation notifications (disabled)
This commit is contained in:
2022-04-30 17:12:36 -05:00
parent f86f2cb6b9
commit 34d89386ea
5 changed files with 27 additions and 19 deletions

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/We-Dont-Byte/Mind_Reader",
"version": "1.0.0",
"engines": {
"vscode": "^1.60.0"
"vscode": "^1.66.0"
},
"categories": [
"Other"
@@ -60,13 +60,13 @@
"category": "Mind Reader"
},
{
"command": "mind-reader.runLineContext",
"title": "Get the Context of the Current Line",
"command": "mind-reader.getLineScope",
"title": "Get Scope of the Current Line",
"category": "Mind Reader"
},
{
"command": "mind-reader.runCursorContext",
"title": "Get the Context of Text Under Cursor",
"command": "mind-reader.getWordsUnderCursor",
"title": "Get Words Under the Cursor",
"category": "Mind Reader"
},
{
@@ -215,7 +215,7 @@
"when": "editorTextFocus"
},
{
"command": "mind-reader.runLineContext",
"command": "mind-reader.getLineScope",
"key": "Ctrl+Shift+/ C",
"mac": "Cmd+Shift+[Slash] C",
"when": "editorTextFocus && editorLangId == python"