-
-
Notifications
You must be signed in to change notification settings - Fork 84
Pattern matching support #831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Have you symlinked / copied cursorless-talon subdir of this branch into your talon user directory, replacing the deployed version of cursorless? If so, maybe try restarting talon and saying "cursorless help" to see if they're appearing in the cheatsheet? |
b268a18
to
3950011
Compare
Thanks, that helped! Tell me please what do I need to add so that |
What should we do with alternatives in patterns in Rust? Python also has them. I would propose to use new |
99d9110
to
0e562f4
Compare
3370e89
to
e533feb
Compare
e533feb
to
3a3fdc6
Compare
abbf158
to
55ebccb
Compare
55ebccb
to
7e7fcc4
Compare
- Partially addresses #1172 - Waiting to add Talon side until we're more confident in this scope type - Split from #831 ## Checklist - [x] Add Typescript - [x] Add C - [x] Add C# - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [x] I have not broken the cheatsheet Co-authored-by: Michael Doronin <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andreas Arvidsson <[email protected]>
- Partially addresses #1172 - Waiting to add Talon side until we're more confident in this scope type - Split from #831 ## Checklist - [x] Add Typescript - [x] Add C - [x] Add C# - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [x] I have not broken the cheatsheet Co-authored-by: Michael Doronin <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andreas Arvidsson <[email protected]>
- Adds `condition` support for Python ternaries - Adds `condition` support for Python list comprehensions - Adds `condition` support for Python match statements - Adds `condition` support for Rust match statements - Note that `"chuck"` includes the `if` keyword for match statements and list comprehensions - Split from #831 ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [x] I have not broken the cheatsheet Co-authored-by: Michael Doronin <[email protected]> Co-authored-by: Andreas Arvidsson <[email protected]>
I’m working on pattern matching support as discussed here and planning to add it to rust, java, c, c++, python, javascript, typescript and haskell (languages I know).
So far I don’t think cursorless even recognised new scopes. @pokey Can you point what I’m missing here?