Commit Graph

326 Commits

Author SHA1 Message Date
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
60e5e0fae4
Fix more doc links (#657)
* Fix more doc links

* Swap sections
2022-04-26 13:48:50 +01:00
Pokey Rule
0d1004bafc
Point to documentation hub instead of GitHub (#655)
Fixes #588
2022-04-26 12:39:55 +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
AndrewDant
b146e98b1b
implement numeric max penalty setting. Closes #603 (#624)
* implement numeric max penalty setting

* removed unnecessary blank lines

* rename setting and improve description

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>

* reformatted my changes using prettier

* added new setting to the README

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-04-26 12:15:24 +01:00
pre-commit-ci[bot]
c18580fe12
[pre-commit.ci] pre-commit autoupdate (#652)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0)

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-04-26 12:08:07 +01:00
AndrewDant
0fa149b960
add simple explanation of vscode actions (#631)
* 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>
2022-04-26 11:39:59 +01:00
AndrewDant
d37cfb9d84
add generator expressions to matcher for python argumentOrParameter (#633) 2022-04-26 08:55:08 +01:00
Andreas Arvidsson
dea640e892
Update to java statements related to switch and block (#653) 2022-04-26 08:36:19 +01:00
Pokey Rule
b47ca1a785
More pre-commit integration (#649) 2022-04-26 07:41:27 +01:00
Pokey Rule
c5644ee753
Clarify install instructions (#651) 2022-04-25 19:06:37 +02:00
Pokey Rule
70b7094483
Remove trailing new lines in svgs (#650) 2022-04-25 16:31:09 +01:00
Pokey Rule
4c0676728c Run pre-commit 2022-04-25 11:21:26 +01:00
Pokey Rule
c8815db318 Manual fixes to get pre-commit to work 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
Will Sommers
7378bcbb44
Add support for css and scss (#605)
* Begin to add support for css and scss

* Continue to work on SCSS, add new selector

* Record some tests for scss

* Add more tests, move tests to correct dir level

* Handle arguments and parameters correctly, tests

* Add tests for CSS, rely on SCSS for CSS matchers

* Add tests, clean up functions for merge

- Fix edge cases in CSS functions with multiple value single args
- Add Selector scope
- Clean up function in node selector
- Remove declaration from statement scope type
- Add declaration to item scope type

* Delete single line comment test for CSS

- Not valid syntax for CSS, just SASS

* Ensure we use scssStringTextExtractor

- Fixes `"take round`" for "hello (world)" in css

* Remove failing state tests

- State redefined as a ruleset selector + block rather than single property

* Add `parameters` back to argument matcher

* Remove test with invalid CSS

* Clean up tests

* Clean up CSS selector test

* Remove `take state` test

* More test clean up

* Various Changes

- Test cases for cursor positions when selecting keys and values
- Allow for name/value selection with optional args in SASS
- Start to clean up SCSS argument matcher

* Changes to childRangeSelector

- Also fix types & clean up findAdjacentArgValues

* Fix breaking tests from node selector change.

* Include all children for import and includes

* Update src/languages/scss.ts

Update delimited function check name

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>

* Update src/util/nodeSelectors.ts

Update childRange docstring for clarity

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>

* Change comment to docstring, handle method rename

* Add docstring

* Fix doc comment

* formatting

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-04-15 15:35:37 +01:00
AndrewDant
95890de171
Update docs to clarify that all actions require a target (#628) 2022-04-13 12:53:44 -07:00
Will Sommers
849d591ba8
Update installation.md (#626) 2022-03-30 08:14:30 -07:00
Pokey Rule
75234a303b
Set up Algolia doc search (#622) 2022-03-27 13:02:19 -07:00
Pokey Rule
2f0fadaa88
Exclude website from extension (#614) 2022-03-19 22:33:25 -07:00
Pokey Rule
dc71d2e78c
Add cursorless.takeSnapshot command (#613)
* Add `cursorless.takeSnapshot` command

* Cleanup imports
2022-03-19 17:30:50 +00:00
Nathan Heffley
310f8f9b69
Add PHP to snippets (#612)
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-03-18 15:10:53 +00:00
Pokey Rule
993fbc8d14
Attempt to fix docs link (#611)
* Attempt to fix docs link

* Add trailing slash
2022-03-18 12:06:00 +00: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
Nathan Heffley
16dc10e280
Support value scope for yield statements (#606) 2022-03-16 15:23:14 +00:00
Nathan Heffley
e526e60bbd
Add PHP support (#594)
* Start adding PHP support

* Add class support

* Add some PHP func stuff

* Add argumentOrParameter

* Add collections

* Fix strings

* Add values

* Chuck assignment operators when chucking values

* Add if statement

* Fix args and params

* Style fix

* Prettify tests

* Add name support

* Change takeIfState test to changeIfState

* Add functions

* Add param type selector

* Detect more types

* Fix type cast chucking

* Fix lambdas

* Add object creation to function call
2022-03-15 20:33:56 +00:00
Will Sommers
cfbfcb1168
Add support for generators in js/ts (#600) 2022-03-11 07:09:24 +00:00
Ronald Walker
aefbcbe996
change the default term (#596)
from "escaped square" to "escaped box"
2022-03-09 22:22:53 +00:00
Pokey Rule
658201ea73
Xml support using html parser (#592) 2022-03-08 09:17:29 +00:00
Will Sommers
6c63c210a2
Add support for Ruby (#578) 2022-03-07 22:42:29 +00:00
Yevgeniy Kuksenko
04bf052fbe
Update README.md (#590)
`cursorless docs` command seems to have been replaced by `cursorless instructions`
2022-03-07 22:22:43 +00:00
Pokey Rule
4c3117f1c3
Improve markdown support (#586)
* Improve markdown support
Fixes #584

* Add docstrings

* Turn off specific section types by default
2022-03-04 17:02:38 +00:00
Will Sommers
304c2d56cc
Add rewrap command to docs (#580) 2022-03-03 22:01:17 +00:00
Pokey Rule
237c56f4cf
Support markdown scope types (#583)
Fixes #582
2022-03-03 13:50:42 +01:00
Pokey Rule
c1030e6f20
Use .git prefix on install instructions (#576)
Closes #556
2022-02-22 13:11:19 +00:00
Pokey Rule
a85c1e1625
Update new_programming_language.md (#575) 2022-02-22 11:27:10 +00:00
Robin Opletal
65621291ff
docs: document move (#574) 2022-02-21 21:40:22 +00:00
Pokey Rule
784947de8a
Add calibration for test case recorder timestamps (#569)
* Test case recorder calibration

* More recorder calibration

* Extract some constants

* Tweaks
2022-02-17 13:35:40 +00:00
Pokey Rule
8b3b2520b6
Fix local extension hack (#567) 2022-02-15 17:03:32 +00:00
Pokey Rule
e2ed7ee664
Support pausing test case recording (#565) 2022-02-15 10:09:46 +00:00
Pokey Rule
b39d85eb9d
Fix talon error (#564) 2022-02-14 15:54:01 +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
180df0ee5e
Add highlight action and nothing mark (#563) 2022-02-14 14:11:09 +00:00
Andreas Arvidsson
593b8771ae
Added open link action (#520)
* Added open link action

* Implemented follow action

* Cleanup

* Renamed action to followLink

* Added test to assert that go to definition works

* Added test to follow file link

* Added optional chaining

* Use fixture file

* Cleanup

* Try with sleep

* Updated link for non-windows

* Moved get links feature in the own util file

* Renamed variable

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-02-13 15:24:09 +01:00
Andreas Arvidsson
554611e73d
Updated delete action with support for overlapping ranges (#531)
* Updated delete action with support for overlapping ranges

* Remove identical resulting selections and that marks for delete action

* Spelling.se

* Cleanup

* Refactored unify ranges into separate file

* Added comment

* Added fix me comment

* Added test to cut every argument

* Updated move with unify targets

* Sort clipboard tests

* Use real clipboard instead of mock
2022-02-13 15:18:26 +01:00
Andreas Arvidsson
a805f8e055
Added no unused rule to lint (#517)
* Added linting rule about no unused variables

* Removed all unused warnings

* Removed unused from tests

* Updated package.json

* Added default case

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-02-13 13:36:00 +00:00
Andreas Arvidsson
029ef345f4
Use generic notebook insert cell command instead of jupyter specific (#486)
* Use generic notebook insert cell command instead of jupyter specific

* Determine if in notebook editor or not

* Test added

* Make tests more thorough and a bit of refactoring

* Improve typing

* Fixed test

* Fix test enumeration

Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2022-02-13 13:14:02 +00:00
Ronald Walker
ab50e20e49
update docs - reflect changes to default terms (#553) 2022-02-11 07:47:26 +00:00
Robin Opletal
9201b50882
docs: replace "clear" with "change" (#551) 2022-02-10 13:08:43 +00:00