21 Commits

Author SHA1 Message Date
3bffd6a9fd mindReader -> mind-reader 2022-05-05 20:49:15 -05:00
ec6b96bd9a Merge remote-tracking branch 'origin/thomasLane' into merge-johnbreaux-thomaslane 2022-05-05 19:49:29 -05:00
tel0065
cc1c23a16f
added function, fixed bug
Added function for selectLeadingSpaces, fixed bug which was reporting the wrong line number on some functions, added window focusing to most of the functions
2022-05-04 19:27:17 -05:00
tel0065
c17b718ce6
Added New Function
Added Senior Design Day Spring 2022 suggestion of selecting the leading whitespace characters. Had to refactor getLeadingWhitespace to include a helper function. Also added imports for vscode. Finally shifted helper functions together and added comments.
2022-05-01 20:22:26 -05:00
34d89386ea 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)
2022-04-30 17:12:36 -05:00
tel0065
5d3dc7acea
added new function
added fetchNumberOfSelectedLines and getNumberOfSelectedLines
2022-04-27 12:00:59 -05:00
2fdd176dd6 createContextString:
Improve formatting somewhat
2022-04-24 02:34:03 -07:00
17c410eae2 Oops: Upload all files changed on VM in the last 5 days. Commit info lost. 2022-04-14 14:27:07 -05:00
cf0900968f Define types where previously any 2022-04-07 13:52:08 -05:00
tel0065
50ff693d16
text.ts -> type error fixes, lets -> const, import
fixed type errors, changed most let variables to const, changed const require to imports
2022-03-25 13:09:16 -05:00
tel0065
3fed2aa4ad
text.ts -> removed random trailing spaces
Linter was complaining about trailing spaces in random places, removed them to get rid of the errors.
2022-03-25 11:13:08 -05:00
tel0065
2f4800448b
text.ts -> fixed type errors 2022-03-25 11:03:06 -05:00
tel0065
c087f1666a
text.ts - added types 2022-03-25 10:39:38 -05:00
tel0065
96bca9a601
js -> ts migration
.js files ended up getting uploaded, beginnings of attempting to fix that mistake. Migrating changes made in .js file to .ts file
2022-03-25 09:08:07 -05:00
tel0065
d8c923e13c
Changed leading spaces logic
Added new logic to pl.Lexer to find number of leading spaces by either arithmetic or by finding the index position of the first non-whitespace character. Also added a boolean flag to switch easily between the two methods using ternary logic. Added comments explaining functionality. Fixed code spacing to be more uniform in style.
2022-03-24 04:01:24 -05:00
3525963bb0 Switch from string concatination to interpolation
Improves concision.
2022-03-23 22:53:46 -05:00
tel0065
6915cd5b44
leading spaces alternative method
Added an alternative method for calculating the leading spaces instead of taking the index of the first non-whitespace character. Leaving it commented out, but still there as an alternative  in-case something goes wrong w/ the index method.
2022-03-23 21:42:05 -05:00
tel0065
cfcbfd43fc
added fetchLineNumber(editor) and getLineNumber()
added helper function fetchLineNumber(editor) to return the line number that the cursor is on and refactored the code to make use of this helper function in various places. Also added function getLineNumber() which will output the current line number the cursor is on.
2022-03-23 18:20:44 -05:00
tel0065
d76cc3d06d
fixed output type-o on getLeadingSpaces()
Fixed issue with the output not displaying as intended in the getLeadingSpaces() function
2022-03-23 17:46:44 -05:00
tel0065
cac31ceaa9
added getLeadingSpaces() function
Added function that would return  the number of leading spaces on a line
2022-03-23 17:44:56 -05:00
jakergrossman
b42eea172b Split command categories into separate files
Further separate commands so that each category of command is in it's
own file. The goal is to keep the number of callbacks defined for each
command to a reasonable amount per file.
2021-12-03 22:26:35 -06:00