Commit Graph

65 Commits

Author SHA1 Message Date
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
tel0065
2bbc5bce1f
Added lineHighlighter.ts 2022-04-27 12:07:33 -05:00
tel0065
34af001396
Deleted linehighlighter
wrong version
2022-04-27 12:07:13 -05:00
tel0065
dd10e928ef
updated webview 2022-04-27 12:01:44 -05:00
tel0065
5d3dc7acea
added new function
added fetchNumberOfSelectedLines and getNumberOfSelectedLines
2022-04-27 12:00:59 -05:00
tel0065
16869aa5b6
Added linehighlighter
added linehighlighter to be activated
2022-04-27 11:59:16 -05:00
tel0065
7d615c0bca
Added linehighlighter.ts 2022-04-27 11:58:14 -05:00
tel0065
5a7fc30e4c
Update package.json 2022-04-27 11:55:01 -05:00
tel0065
d19ad8f885
lexter.ts - let -> const, fixed type errors
changed most let variables to const, fixed more type errors
2022-03-25 13:17:51 -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
ca3a5163fe
lexer.ts -> fixed type errors 2022-03-25 11:05:38 -05:00
tel0065
2f4800448b
text.ts -> fixed type errors 2022-03-25 11:03:06 -05:00
tel0065
a619146afc
lexter.ts - added types 2022-03-25 10:44:37 -05:00
tel0065
c087f1666a
text.ts - added types 2022-03-25 10:39:38 -05:00
tel0065
641997b620
delete lexer.js
.js file unintentionally uploaded, fixing that user error.
2022-03-25 09:12:55 -05:00
tel0065
829a3f0b9d
.js -> .ts
migrating changes made in .js file to .ts, .js file was unintended to be uploaded. User error to blame, fixing it.
2022-03-25 09:12:09 -05:00
tel0065
9062c253cf
delete text.js
.js file never supposed to have been uploaded, user error to blame. Removing it.
2022-03-25 09:09:09 -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
125cf15a68
fixed plural output logic
Fixed logic of output, was showing singular for '0' ie: '0 space' instead of '0 spaces' - This has been resolved.
2022-03-24 04:48:59 -05:00
tel0065
88ddcd7c51
beautify code
ran beautify code extension to clean-up the code and make it more uniform in style
2022-03-24 04:28:21 -05:00
tel0065
08ec15287a
beautify code
ran beautify code extension to clean-up the code
2022-03-24 04:27:16 -05:00
tel0065
e67f731bc6
added 2 functions
added functions getLeadingSpacesByArithmetic and getLeadingSpacesByIndex to facilitate functionality of finding the number of leading spaces via two methods.
2022-03-24 04:03:17 -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
Jake Grossman
30248966bf
Add contact information (#15)
* added change theme feature

* added change theme feature

* Add contact information

* Add contact email

* Added Contact Info

* added my contact info to readme

* Update README.md

Co-authored-by: sophiadrewfs <sophiadrewfs@gmail.com>
Co-authored-by: CalWooten95 <Cal.wooten95@gmail.com>
Co-authored-by: JosiahMoses <32985363+JosiahMoses@users.noreply.github.com>
2021-12-09 11:19:40 -06:00
Jacob Grossman
7e4864d585 Release v1.0.0 2021-12-04 14:32:59 -06: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
MasonBone
94fda2de21
Update hubManager.ts 2021-12-02 10:40:48 -06:00
Jacob Grossman
6067a88fb8 Add error notification, bump version number 2021-12-02 08:08:53 -06:00
Jake Grossman
b3984daad5
Hub communication (#12)
* Add persistent accessibility pane

This will facilitate more extensive usage of the menu than the
context menu.

* Fixed missing files

* Add missing semicolon

* Implement HubController

* Parse messages on arrival

Rather than queuing inbound messages, the HubController now saves
pending promises/rejects for each pending request. Each inbound packet
is checked at the time of arrival, and if the ID matches a pending
response, the corresponding promise is called.

This fixes a problem where the longer the time between reads, the more
garbage responses queue up that are guaranteed to get thrown away the
next time the next response was gathered.

* Add clarification comment to send

* Add logger, output

* Use stat+stream instead of reading entire file on upload

* Split MindReader view into accessability and hub sub-views

* Add missing comma from conflict resolution

* Fix issues, split commands into sub-lists

* Add rebuild instructions

* More accurate

* Add tools for native modules instructions to README.md

* Move commands to correct spot

* Remove automatic connection

I did not heed the warning where 'only the path is guaranteed' when
listing open serial ports and made the assumption that the manufacturer
would be known (hint: it wasn't).

* Use device specific language for output title
2021-12-01 21:40:01 -06:00
JosiahMoses
913be402b1
Update package.json
Had to fix a few typos
2021-11-30 12:27:11 -06:00
JosiahMoses
bdc6c4d050
Update package.json
Added Navigation Keys for Mac
2021-11-30 12:18:58 -06:00
MasonBone
a67870ee5b
Masonbone (#13)
* added initial webpage

* Added webpage

* Update package.json

* Update package.json

* Updating stuff

* Update src/commands.ts

Co-authored-by: Jake Grossman <jake.r.grossman@gmail.com>

* updated extension.ts

* Added Key binding pages

* Read html from file

Co-authored-by: Jake Grossman <jake.r.grossman@gmail.com>
2021-11-30 12:04:26 -06:00
jakergrossman
58f153b039 Fix excess space in image 2021-11-27 17:21:54 -06:00
jakergrossman
1c8d9422a3 Update README 2021-11-27 17:18:15 -06:00
Jake Grossman
c0f23d6de1
Add persistent accessibility pane (#9)
* Add persistent accessibility pane

This will facilitate more extensive usage of the menu than the
context menu.
2021-11-18 00:33:55 -06:00
sophiadrewfs
2c5a381b93
Merge pull request #11 from SingleSemesterSnobs/cal
Merge indentation level and line number hotkey
2021-11-17 22:12:47 -06:00
CalWooten95
7f2181d9ea
Update commands.ts 2021-11-17 16:32:35 -06:00
CalWooten95
327ce1eea4
Update commands.ts 2021-11-16 15:24:41 -06:00
CalWooten95
f59be64ab2
Update commands.ts 2021-11-16 15:21:57 -06:00
cdw0311
0dce1dde23 Added current indentation level and line number hotkey 2021-11-16 15:17:41 -06:00
cdw0311
46fef452d8 Added get indentation level and line number hotkey 2021-11-16 15:12:57 -06:00
JosiahMoses
ed6df007fd
Add Navigations Keys (#8)
* Add Navigations Keys

* Update package.json

Fixed Typo

* Update commands.ts

Fixed Typo

Co-authored-by: Jake Grossman <jake.r.grossman@gmail.com>
2021-11-16 11:56:57 -06:00
Jake Grossman
887f88eba6
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
2021-11-16 11:35:38 -06:00
Jake Grossman
6904b5dacf
Refactor command registration (#6)
Refactor command registration

As we continue to register more commands for our extension,
'extensions.ts' has become gross and hard to read. Commands are now
defined in a `commands: Command[]` list in 'commands.ts':

    type Command = {
      name: string, // Name of the command e.g. 'mind-reader.selectTheme'
      callback: () => void // Callback to register for the command
    }

This list is imported into 'extension.ts' and registered
programatically, reducing the required lines of "extra" code required
to register commands in 'extension.ts' from 4 per command to 7 total.
This should help keep 'extension.ts' squeaky clean :)
2021-11-01 15:32:06 -05:00