* add updating.md
* move updating.md to the right place
* fix path
* path fix up
* Tweaks
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Support insertSnippet action
Handle action modifiers before positional modifiers
* Fixes from Andreas PR review session
* Tweaks from PR feedback
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Make halt overridable
* Clean up snippet error handling
* Throw error if multiple snippet definitions match a context
* Improve comment
* Update comment
* Cleanup
* More cleanup
* Add doc string
* Support cascading scope types for snippets
* Update doc string
* Removed duplicate test
* Restructure tests
* At link to issue
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Remove unsupported command from documentation.
This tripped me up when I was first getting started, and is apparently still in the documentation and unsupported.
* Update docs/user/README.md
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update README.md
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* add callee scope type to type lists
* add callee matchers for python
* recorded three test cases for python callee
* add callee scope to typescript
* record test cases for typescript callee
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* implement callee scope for java
* record test cases for java callee
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix callee scope type for typescripts constructor calls
* implement callee scope for ruby
* record a ruby callee test
* implement callee scope for go
* go callee bugfix and test cases
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Apply suggestions from code review
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
* new python callee tests
* rerecord python object method callee test
* additional callee tests for typescript
* remove duplicate test
* update childRangeSelector to optionally include unnamed start/end nodes
* update typescript callee to include new keyword
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* additional typescript callee constructor test
* small childRangeSelector refactor
* fix non constructor callee in typescript
* delete outdated typescript callee test
* Deleted incorrect java callee tests
* update callee scope for java
* several new callee tests for java
* removed unused in port
* add callee tests for go
* implement callee scope for C plus plus
* add several tests for callee scope in C plus plus
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add callee scope for C#
* Add tests for callee scope in C#
* implement callee scope for Clojure
* remove all ruby changes
* change workspace setting for default end of line character
* additional callee tests for Clojure
* rerecord multiline java callee test
* update java file to recognize constructor calls as function calls
* add callee scope type to scss
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update C++ call scope to include constructor calls
* update C++ callee scope type to be more specific
* remove invalid test
* update C# call scope type to include object creation
* rerecord callee test with correct line breaks
* add doc string for new childRangeSelector parameter
* change callee scope for constructor calls to ignore new keyword
* update some php tests to use better line breaks
* revert changes to childRangeSelector
* update go call and callee to include composite literals
* add callee scope to user docs
* post merge required changes for callee
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>
* Add docs to cover toggling hats
* Update docs/user/customization.md
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
* Update docs/user/customization.md
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
* Update docs/user/customization.md
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>
* Fixed bug in removal range for range target
* A dead delimiter highlight to range target
* Added token context to all marks
* Added correct token context too regex
* Don't unifi ranges on content only removal
* Update the test
* Added feature to run single recorded test
* Updated tests
* Fallback on token context for containing scope
* Updated target inference
* general refactoring of removable ranges
* Updated unify removal targets
* Fixed that mark bug on set selection
* Fixed is reverse bug on vertical range targets
* Fixed is reverse bug on vertical range targets
* Set empty delimiter on end of and start of positions
* Updated test
* Fixed last tests
* Added description to run single recorded test
* At dead tests for bring before and after file
* Update to removal ranges
* Mark cleanup
* Added interior only and exclude interior as proper modifiers
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added support for every line
* Only select lines with content
* Added take every paragraph
* Added every file line and block tests
* Added take every token
* Added every too regex stages
* Cleanup
* Moved example of custom test transformation to docs
* Update src/core/commandVersionUpgrades/upgradeV1ToV2/commandV1.types.ts
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update src/core/commandVersionUpgrades/upgradeV1ToV2/upgradeV1ToV2.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
* Added OO targets
* Fixed merge conflict
* Reversed order of migration modifiers
* Default to array
* Cleaned up inference code
* Added paragraph target
* Better updates of new range
* oo targets past all test
* Added line and paragraph tests
* Highlight update
* Added script to show unused exports
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added line 2 unused export
* Default modifiers to empty array
* Don't use hat map
* Modifiers default to undefined
* Fixed is implicit inference
* Removed get tokens function
* Update src/core/commandVersionUpgrades/upgradeV1ToV2/commandV1.types.ts
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update src/core/inferFullTargets.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
* General cleanup
* Added notebook cell target
* Support delimiter based edit newline (#684)
* Added delimiter based edit line
* Added support for arbitrary delimiters
* Added tests
* Renamed is above to is before
* Better handling of empty lines
* Cleanup
* Added default delimiters for some common scope types
* Run yarn
* Attempt to fix raw delimiter
* Fixed delimiter
* Revert "Attempt to fix raw delimiter"
This reverts commit 0de07989dc.
* Revert "Fixed delimiter"
This reverts commit a035390f78.
* Use low dash unique with
* Made base target abstract
* Updated tests
* Added return type
* Fixed compilation errors
* Updated position
* Add empty string as default delimiter for sub tokens
* Updated bugs
* Cleanup
* Added tests
* Updated inference of implicit target
* Updated spoken forms in test
* Utilize getters
* Refactored getters and setters for targets
* Implemented get final stages
* Added final stages to process targets
* Cleanup
* Converted command action into object with associated arguments
* Switch to complex scope types
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove scope type type from base target
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Updated to edit new context
* Added bring statement test
* Change behavior of pour line
* Use weak containing line stage for edit new
* Updated edit new
* Get targets in correct order
* Updated selection for editor
* Cleanup
* New attempt at EditNew
* Added rich targets
* Updated edit new with proper line handling
* Only used single edit
* Added comment
* Added comment
* Cleanup
* Added derived target
* Moved weak target into base target class
* Cleanup
* Updated action form
* Updated scope type for tests
* Fix upgrade path with ordinal range
* Pass leading and trailing delimiters to super constructor
* Learn to spell
* Updated more tests
* Cleanup
* Fixed bug taking matching pair in error code
* Added block tests
* Fixed test
* Added support for custom delimiters in copy lines
* Fix package json
* Fix one test
* Updated tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Disabled phrase snapshot on recorded test runner
* Updated test and upgrade path
* Fixed failing hat map tests
* Added sleep option to recorded tests
* Verbosity for the win
* Tweak modify of week stage
* Minor python cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Don't de duplicate that mark
* Use utility function to set selection that deduplicates
* Make document content range the entire file including white lines
* Added source mark to wrap action
* Added source mark to actions wrap and rewrap
* Updated error messages
* Updated tests
* Don't focus editor on notebook cell insertion
* Cleanup
* Don't update selection on notebook cell insertion
* Add comment
* Various fixes
* More renames and stuff
* Fix bug with missing delimiters in weak targets
* Update src/processTargets/processTargets.ts
Co-authored-by: Will Sommers <will.sommers@gmail.com>
* Unify implementation of copy lines and edit new actions
* Rename
* Started working on lazy removal
* Clarify processPrimitiveTarget
* Tweak
* Tweak again
* Imports fix
* All tests pass
* Updated highlights
* Highlight updates on continuous range target
* Moved edit decorations into graph
* Added decorations to test recorder and runner
* Updated to highlight recorder test
* Added decorations test
* Added decorations test
* Added leading and trailing delimiters as separate stage and target
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Create edits in actual targets
* Use object oriented targets to construct edits
* Enabled bring before and after without to
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix
* Support fully compositional modifiers
Fixes#69
* Getting started
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Start using InsertionRemovalBehavior
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* Tweak
* More cleanup
* More tweaks
* Tweaks
* More cleanup
* Cleanup
* Removed padding from float and drop
* Updated that mark on pour action
* Lots of stuff
* Fixed removal behavior on scope type target
* Hide panel on recorded test sweet startup
* More stuff
* More stuff
* Cleanup
* Some stuff clean up whatever don't care
* Committed some stuff
* Stuff
* Updated tests
* Support chuck after and chuck before
* Add hack for "paste to to"
* Add run single test launch config
* Add comment about running a single test to contributing docs
* Update cursorless-talon/src/csv_overrides.py
* Update cursorless-talon/src/positional_target.py
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update cursorless-talon/src/positional_target.py
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Use plain target in clear action
* Initial modifier unification work
* Unify simple modifiers
* docstring
* Clean up position code
* At a couple comments
* Creates separate file for target descriptor types
* Separate notebook cell edit new from regular edit new
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixed that mark on notebook cells
* Cleanup
* More positional tweaks on talon side
* Removes support for chuck after and chuck before
* Clean up names
* Use proper error for syntax scope not found
* Record tests for leading trailing before and after
* Add chuck before after to upgrade
* Failed attempt at trying to simplify edit new
* Revert "Failed attempt at trying to simplify edit new"
This reverts commit 52193ae651.
* Cleanup vscode ignore
* Fixed regression in vertical range target (#735)
* Revert generic insert empty lines code
* Add broken float and puff tests
* Add working puff float drop tests
* Switch to mocha grep syntax for running subset of tests
* Make subdir for insert empty lines tests
* Support updating fixture decorations
* Add decorations to float drop puff tests
* Cleanup test case recorder docs
* Add bunch of clone tests
* Move files
* More cleanup
* `PartialTargetDesc` => `PartialTargetDescriptor`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Re-add provenance file
* Comments
* Bump package version
* Attempt to fix docs link
Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Will Sommers <will.sommers@gmail.com>
* Allow for assertions against intentional non-match
* Rename yml key for new test
* Address PR feedback
* Change asserted on property `errorName`
* Address PR feedback pt.2
* Rename error field
* Re-add empty line
* Change error checking code to work
* Fix ci
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update parse-tree-patterns.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update docs/contributing/parse-tree-patterns.md
* [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>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Directly explain how to find VSCode
Added "To navigate to your VSCode settings, either say "show settings", or go to File --> Preferences --> Settings." At the intro of both colors and shapes section.
* Update docs/user/README.md
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Create local extension sandbox
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* docstring
* Update docs/contributing/CONTRIBUTING.md
Co-authored-by: Will Sommers <will.sommers@gmail.com>
* Update CONTRIBUTING.md
* Update docs/contributing/CONTRIBUTING.md
Co-authored-by: Will Sommers <will.sommers@gmail.com>
* Use exec
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Support fully compositional modifiers
Fixes#69
* Bunch et weeks
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix licenses
* [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>
Co-authored-by: Will Sommers <will.sommers@gmail.com>
Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
* Add link to list of supported languages to README
* [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>
* Added example of custom tests transformation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update docs/contributing/test-case-recorder.md
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>
* add simple explanation of vscode actions
* add a short description of four vscode actions in the documentation
* fix for merge conflict with another documentation update
* Apply suggestions from code review
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Initial pre-commit config
* Updates to pre commit
* New prettier config
* Fix type
* Add comment
* At another comment to
* Tweak pretty or config
* More pre commit fixes
* Improve comment
* Improve comment
* Add prettier recommended extension
* Fix typescript errors
* Add black to vscode settings
* Change prettier version
* Don't autofix PRs
* Add simple docs
* Tweak editor config
* At a comment
* Removes something we didn't need
* Remove marked down line length
* Attempt to fix eslint in pre comet
* Fix
* Another fix
* Try to fix eslint
* Bump versions
* Update lock file
* Tweak package
* unset editorconfig for vendor
* Exclude vendor
* Tweak editorconfig
* Add more rules
* Remove lint from pre commit
* Sort hooks
* Run shed last
* Have a bit more exposition and point to API doc landing page on contributing landing page.
Fixes#609
* Test broken link
* Fail on docs build fail
* Remove broken link
* Various stuff
* Remove unnecessary markdown link checker
* Fix link
* More docs cleanup
* Tweak deploy setup
* Inline documentation added for some key functions
* Docusaurus minimal set up added
* Fixed links to repository sub directories
* Added contributing/api using TypeDoc
* Updated publish docs workflow
* Link hack docs, publish only on main branch
* Update website/docusaurus.config.js
More robust fixing relative link to repository artifacts
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Addressed review comments; Github workflow to test documentation build added
* Update .github/workflows/deploy-docs.yml
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Update .github/workflows/deploy-docs.yml
Deployment should be authored by cursor less bot
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Apply pull request suggestion
* missing-exports plugging added
* Moved contributing; Added new API index page
* Avoid copying docs folder
* Fix links to GitHub after docs folder move in previous commit
* Fixed issue were relative links were rewritten to point to GitHub
* Add stub contributing
* Fix broken link to svg calculations
* Add broken markdown link checker
* Update tagline and run dock sours can fig through prettier
* Disable markdown link checking in CHANGELOG.md
* Factored out typedoc configuration from docusaurus
* Prevents broken links like https://.../../ generated
* Fixed link giving warning
* Fixed typo
* Better docusaurus config documentation
* Serve folder with /docs/ subdir <- website/build for baseUrl to work correctly
* Added CNAME to gh-pages root. Otherwise adhock commits when updated from GitHub Pages UI
* Cleanup docs
* Docs
* More docs
* Update docs-build.sh to clean out old artifacts
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* runCommand fixed list numbering
* Hide API index from the sidebar
* Bumped docusaurus dependencies, minor nice improvements
* Moved dogs build script to scripts folder
* Edit launch configuration to debug docusaurus configuration
* Use `www` as default
* Switch to www
* Fix ci
* Trigger notification
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
* Initial attempt at turning testcase recorder into a graph component
* Fixes
* Switch to generalize test case recorder argument
* Update dock string
* Add a couple more arguments
* Add snapshot timestamps
* Remove incorrect type annotation
* Update docks
* Update docs and links to monorepo
* Update a link
* Update link
* Fix up installation
* Fix up installation
* More doc tweaks
* More updates to new repo location
* Black
* More tweaks
* scala support: initial commit
* className should work here
* class, className, ifStatement, string, comment
* very basic list and call support
* class changes to support traits and test case classes
* (some) lambdas, maps, interpolated strings
* argument and parameter support
* names, functions and function names
* basic types (no generic specific work yet)
* basic value support
* conditions
* cleaning up temp work
* doc changes
listing out every place where code has to change to add a new language
* adding fn names
* Fix scala language id missing
* more matching values tests
Testing when the mark is on the name of the value.
* More condition tests
For marks which aren't the condition itself
* Dropping list and map, improving types
You can now grab types when the mark is not in the type itself
* paired delimiters
* Dropping comment about partial functions
I'm not sure we can ever truly detect these. At least in the current tree sitter implementation they are eg just infix expressions, just like lots of other things
* cleaning up types
* More type tests
For when the mark is not directly on the type
* Fixing up types
* cleaned up notes
* clarifying our type matching strategy
Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
* Initial attempt to at snapshots
* Switch to unnamed snapshots
* A kind of workign attempt
* A kind of workign attempt
* Use command server signal API
* More error robustness
* Working version
* Have navigation map return snapshot
* Attempt at big refactor
* Fixes to get it running
* Rename
* Bind function
* Remove unnecessary field
* Add docstring
* snapshot => prePhraseSnapshot
* Clean yaml
* Do disposal in hat allocator
* navigationMap => hatTokenMap
* Add tests
* Make isTesting into function
* Set testing env var
* Try to change env var
* Initial cleanup work for edits outside viewport
* More cleanup
* Fix yarn lockfile
* Fix yarn
* refactoring
* Fixes; add tests
* File rename
* Finish merging
* Some cleanup
* Create command runner class
* Working backwards compatible command runner
* More backward compatibility fixes
* Rejects stale snapshots
* Add link
* A bunch of refactoring
* Test fixes
* Revert change
* Improved canonicalization
* Add comment
* Fix ci
* Rollback decoration test change
* Attempt to fix decorations
* Normalize hat enablement during testing
* Fix recorded tests
* Fix tests
* Cleanup test recording
* Add docs
* Fix creating nested recorded test directories
* Cleanup test case bulk transformer
* More transform script fixes
* More transform stuff
* Upgrade a test
* Initial work
* Initial new vesrion
* Tweaks
* More work
* More implementation
* MOre stuff
* Some stuff
* More stuff
* Add get offsets for delete or replace
* Fixes
* Initial running version
* Big refactor
* Move to graph-based approach
* Initial working version
* Minor fixes
* Working selection updater for NavigationMap
* cleanup
* Fix CI
* Fix CI again
* Improve comments
* Cleanup
* Rename
* More renaming
* Navigation map disposal
* Add documentation to graph
* More documentation
* Add comments
* More comments
* Fix comment
* More doc updates
* More cleanup
* Doc string
* Improve bring; add a bunch of tests
* Delete useless test
* Delete another test
* Add navigation map tests
* Move marks to initial state
* Get tests working
* Remove transient transorm recorded tests
* Add docs for navigation map tests
* Add more tests
* Remove unnecessary test
* Add comments
* Be more robust to errors in the testcase recording
* Test multiple inserts in one atomic edit
* Take note of marks that we care about
* Transform test cases
* Reorder fixture fields
* Throw error for sub token exclusions
* Add action name canonicalization
* switch to exclude for subtokens
* Lots of renaming
* Change many names
* Use canonicalization for all deprecations
* Better exceptions
* Improve rename script
* Docstring
* Normalized test case yml
* Add a note
* Fix unit tests
* Changes
* More fixes
* Fixes
* Fixes
* Remove extraneous files