Commit Graph

26 Commits

Author SHA1 Message Date
Pokey Rule
255e889547
Create guidelines.md (#1139) 2022-11-15 19:50:13 +01:00
Pokey Rule
2b21593d98
Add cursorless-talon-dev (#1017)
* 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>
2022-10-11 00:07:44 +02:00
Pokey Rule
9195c6aaa7
Support default recorder config per directory (#970)
* Support directory-specific config

* Improve documentation

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
2022-09-21 14:42:32 +02:00
Pokey Rule
c86d41a7fc
Add landing page (#857)
* nx g @nrwl/next:app cursorless-org

* Attempt to get things working

* Remove cypress for now

* Add --prod flag

* Try again

* Another fix

* Remove website-root/index.html

* Use static export

* Another attempt

* whoops

* another

* Some style tweaks

* Add inconsolata

* Working iPhone 13

* Desktop version

* Fix dark

* Cleanup cheatsheet defaults updater support

* Basic working mobile

* More tweaks

* Working desktop

* Center hats

* Initial working embedded video

* Add related videos opt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add cursorless.org client-side launch config

* Switch to react-player; better error handling

* Working mobile layout

* Move hats component

* Add player controls

* Use video placeholder

* Revert "Use video placeholder"

This reverts commit 40f45286ed.

* Bunch of tweaks from jam sesh

* More jam sesh tweaks

* Working mobile; some desktop tweaks

* Working draft of desktop

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Tweak media breakpoints

* Fix isExternal

* Fix button background for light mode

* Docusaurus respect system color scheme

* Some design tweaks

* Font tweaking

* More messing around

* Working mobile

* Work toward proportional layout

* Workign resize code

* Start of screen stuff

* Get layout working at more sizes

* Fix background color on mobile

* Attempt to fix iPhone landscape

* Remove video placeholder

* Add doc comment

* Start adding meta tags

* More styling tweaks

* Add button hover

* Fix favicon

* Attempt to fix social tags

* Hack to use deploy preview URL

* Revert "Hack to use deploy preview URL"

This reverts commit d0251e74d9.

* Fix social embed

* Hack deploy preview URL again

* Revert "Hack deploy preview URL again"

This reverts commit 6acb1326ae.

* Tweak share

* Hack url

* Revert "Hack url"

This reverts commit 77c109d521.

* Cleanup from looking through PR

* More cleanup

* whoops

* bump package-lock

* Fix order of fonts

* Add regular font weight

* Revert cheatsheet

* Kick CI

* Update cursorless-nx/apps/cursorless-org/pages/_app.tsx

Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>

* Tweaks

* Tweaks

* website/ => docs-site/

* Lots of tweaks

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Attempt to fix docs build

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
2022-09-15 16:31:10 +01:00
James Stout
4b38d4cefa
Added warning about using WSL on Windows. (#921)
* Added warning about using WSL on Windows.

* Update docs/contributing/CONTRIBUTING.md

Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>

* Update docs/contributing/CONTRIBUTING.md

* Update docs/contributing/CONTRIBUTING.md

Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-09-12 19:17:23 +01:00
Pokey Rule
3c41868de3
Tweak docs search ranking (#915)
* Swizzle SearchBar

* Ignore swizzled file

* Tweak search rankings in docs site

* Capture original Algolia settings

* Documentation

* Modifications to Algolia crawler and index settings

* Tweak wording

* More tweaks

* run `yarn`

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
2022-09-07 15:15:13 +01:00
Pokey Rule
2ee7ca137e
Support fully compositional modifiers (#672)
* 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>
2022-06-07 13:58:44 +01:00
Will Sommers
87df33023d
Allow for assertions against intentional non-match (#705)
* 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>
2022-06-03 13:38:40 +01:00
AndrewDant
358cf953cd
Update parse-tree-patterns.md (#665)
* 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>
2022-05-31 14:59:03 +01:00
Pokey Rule
660a961154
Create local extension sandbox (#691)
* 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>
2022-05-25 19:46:15 +01:00
Pokey Rule
48074757e6
Document extension prerequisites for local testing (#686)
* Document extension prerequisites for local testing

* Update CONTRIBUTING.md
2022-05-22 19:36:34 +01:00
Andreas Arvidsson
8c5cbec8d8
Added example of custom tests transformation (#679)
* 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>
2022-05-18 10:54:58 +02:00
Pokey Rule
e4a3b9c4b8
More docs clarifications (#659) 2022-04-27 10:12:42 +01:00
Pokey Rule
2d1a3443db
More docs improvements (#658)
* More contributor docs improvements

* Removed table of contents from docs
2022-04-26 14:25:20 +01:00
Pokey Rule
2617c776b9
Change cursorless-dev/cursorless-vscode to cursorless-dev/cursorless (#656)
* Change `cursorless-dev/cursorless-vscode` to `cursorless-dev/cursorless`

* Switch to plain format for template link

* Fix permalink
2022-04-26 13:56:23 +01:00
Pokey Rule
ba160ebf8f
Improve talon repo docs (#654)
* Improve cursorless talon repo docs

* Add edit link to docs pages

* More docs cleanup
2022-04-26 12:33:48 +01:00
Pokey Rule
4c0676728c Run pre-commit 2022-04-25 11:21:26 +01:00
Pokey Rule
6256e45191
Add pre-commit (#637)
* 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
2022-04-24 17:26:32 +01:00
Pokey Rule
b7946d9450
Minor Cursorless docs follow-up tweaks (#610)
* 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
2022-03-18 10:58:00 +00:00
Kirill Dubovitskiy
d90a3698f1
Serve docs folder and API reference on GitHub pages (#477)
* 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>
2022-03-16 23:23:03 +00:00
Pokey Rule
25cadacfab
Repurpose test case recorder for rich video recorder (#555)
* 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
2022-02-14 15:14:15 +00:00
Pokey Rule
4d35594981
Update documentation and links to reflect monorepo (#542)
* 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
2022-02-03 18:57:58 +00:00
Pokey Rule
5f08ec42ec
Pull request templates (#503)
* New language pull request template

* Add generic template

* Cleanup pull request template

* Cleanup checklist
2022-01-24 16:21:44 +00:00
Stefan du Fresne
8e7f10113e
Scala support (#399)
* 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>
2022-01-08 16:42:56 +00:00
Pokey Rule
83543d38bf
Fix doc links (#371) 2021-12-08 12:27:02 +01:00
Pokey Rule
0b685a7cc2
Hat snapshots (#318)
* 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
2021-12-06 18:13:48 +00:00