* Implemented strongly typed internal function to run Cursorless commands
* Refactor
* Clean up
* clean up
* Use import type
* Restore backwards compatibility tests
* Rename
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Fixed bug with reusing regex in token preference
* update test
* Add take token twice test
* Apply suggestions from code review
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* activeEditor: introduce class
* migrate all usages of `vscode.window.activeTextEditor`
* migrate all usages of `window.activeTextEditor`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* activeEditor: improve comment
* `getActiveTextEditor`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Lint for references to `activeTextEditor`
* Rename file `activeEditor` => `activeTextEditor`
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Iteration-based scope handler interface
* Remove `getPreferredScopeTouchingPosition`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* `isPreferredOver` skeleton
* Reintroduce token preferences
* Attempt at more simplification
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Tweak hints
* Cleanup
* Remove `allowNoOverlap` from requirements
* New RelativeInclusive semantics
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add tests
* Migrate early stopping to base class
* More doc tweaks
* More doc tweaks
* More docs
* More docs
* More docs
* More doc strings
* More cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* More docs
* More docs
* More docs
* Fixes
* More docs
* More docstring tweaks
* Tweak docs
* Address PR comments
* Tweak token `isPreferredOver`
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Force tab size on test run
- This fixes problems related to different local configurations
- Tests expect tabSize to be 4
* Ensure we set tab size on recording tests
- Check if we're in debug mode and set tabSize if so
- Move tabSize to constants file
* Move tab setting out of command loop and into test recorder
* Remove unused import
* Init tab setting as undefined
* Force insert spaces on tests
* Only show message if necessary
* Move code to hooks
* Fixes
* Whoops
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
* Draft off one of compound scope type
* Tweaks
* More tweaks
* Tweak implementation
* Fix a couple bugs
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Supports states scope for interface properties
* Remove trailing semi
* Added test
* Add class fields
* Use extend past optional finder
* updated test
* Added inline test
* Updated state definition for typescript
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add "item" tests
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Added word separator setting. Removed language specific regex components.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Updated tests
* Word separator is now a list
* Update documentation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Mock word separators for tests
* Minor tweaks
* Update src/core/tokenizerConfiguration.ts
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Revert "Minor tweaks"
This reverts commit b7f3695975.
* cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Use join to create key
* Update src/core/tokenizer.ts
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update docs
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Switch to prettier `trailingComma: "all"`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Moved global state into ide definition
* revert font measurements
* use typed key
* Use list of keys to synchronize
* use correct type
* Use default value
* Clean up
* Clean up
* Improved type inference
* More typing improvements
* Doc string
* More cleanup
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update token removal range to keep leading indentation
* Rework implementation; new tests
* Tweak docstring elsewhere
* One more tweak
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Original scope handlers
* More stuff
* Use proper token stage in sub token stage
* Work around for identifier matcher
* Use new scope handler in relative scope stage
* Use new scope handlers in ordinal scope stage
* Update usage of containing indices
* Rename
* Refactored create target
* Clean up
* clean up
* Add some tests that should pass
* Add a bunch more tests
* Attempt at different approach to scope handlers
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Initial implementation of new idea
* More work on this stuff
* Rename and add some todos
* More stuff
* Tweaks
* Renames and docstrings
* Restructuring
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* More jsdocs
* Tweaks
* Test fixes
* Fix error messages
* Revert `OrdinalScopeStage`
* Tweak
* jsdocs; fix import
* Don't export legacy types
* Fix import
* Preparation for surrounding pairs
* Naming cleanup
* Unify `getLegacyScopeStage` functions
* Lots of cleanup
* Fix regex `lastIndex` issue
* More cleanup
* More cleanup
* More cleanup
* Add `ancestorIndex` in prepartion for #124
* Add more jsdocs
* More docs
* More docs
* docstrings
* Improve hierarchical error type
* Docs
* More minor dog tweaks
* More docs
* More docs
* Doc strings and a couple tests
* Remove `isPreferredOver`
* Support `ancestorIndex` on api surface
* Improved jsdocs
* Split and cleanup relative stages
* Make scope handler constructor args optional
* More legacy type fixes
* Add `"identifier"` scope
* Working new code
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Docs + cheatsheet
* Update docs
* Add jsdoc
* jsdoc
* JSDocs
* doc tweaks
* reflow
* Tweaks
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Support abstract methods
* Use trailing matcher
* Don't remove extra whitespace; always remove `;`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add unit scope to SCSS/CSS
* Add unit to docs
* Add unit to new targetDescriptor type
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix upgrade types
* Improve unit support
* Minor import cleanup
* Remove `that` marks to fix tests
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
* Added its modifier to use with inference
* Fix test failures
* Remove unnecessary spy
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Added subWordSplitter function
* Add support for unicode characters in sub words
* Added additional test
* Support language specific identifier regex
* Cleanup
* cleanup
* Use unicode number in camel case regex
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Token removable range based upon merging of tokens or not
* Updated tests
* Clean up
* clean up
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Add cursorless-talon-dev
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Tweaks
* More tweaks
* Woops
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>