Skip to content

Commit 8ef4e23

Browse files
AndreasArvidssonpokeypre-commit-ci-lite[bot]
authored
Talon language support (#1555)
Resolves #817 **Condition** - [x] context match - [x] every context match **Command** - [x] command - [x] every command **Statement** - [x] command line - [x] command block - [x] settings block - [x] script action call - [x] script key action call - [x] script sleep action call - [x] script assignment - [x] key binding - [x] tag binding - [x] gamepad binding - [x] parrot binding - [x] face binding - [x] every statement in file - [x] every statement in command block - [x] every statement in settings block **Name / Collection key** - [x] context match left - [x] command left - [x] settings block left - [x] setting left - [x] tag() left - [x] key() left - [x] gamepad() left - [x] face() left - [x] parrot() left - [x] every name/key in context block - [x] every name/key in file **Value** - [x] context match right - [x] command right - [x] settings block right - [x] setting right - [x] tag() right - [x] key() right - [x] gamepad() right - [x] face() right - [x] parrot() right - [x] every value in context block - [x] every value in settings block - [x] every value in file **Interior** - [x] command right - [ ] settings block right - [x] every command interior in file **Function call** - [x] action - [x] key action - [x] sleep action - [x] every call in command block **Function callee** - [x] action - [x] key action - [x] sleep action - [x] every callee in command block **Argument or parameter** - [x] action - [x] key action - [x] sleep action - [x] every argument in action **Update Tree sitter patterns** - [x] Exclude leading/trailing whitespace from `implicit_string` Waiting for release of wenkokke/tree-sitter-talon#23 - [x] Removed trailing parentheses `key(` and `sleep(` actions ~~Waiting for release of wenkokke/tree-sitter-talon#26 Instead solved with a pattern predicate ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] Look into failures with new tree-sitter-talon. Do they occur on shipped version? - [ ] "every value bat" in aaa: "bbb" ccc: "ddd" - [x] wenkokke/tree-sitter-talon#29 - [x] `"take key"` targeting `settings()` - [x] `"take key"` targeting `tag()` - [x] Rollback whitespace removal - [x] If the above are all fine on shipped tree-sitter-talon, let's just file follow-up to upgrade tree-sitter-talon later - [ ] 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: Pokey Rule <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 7c03fb7 commit 8ef4e23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modifiers/scopes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
"paragraph": "namedParagraph",
6565
"subparagraph": "subParagraph",
6666
"environment": "environment",
67+
# Talon
68+
"command": "command",
6769
# Text-based scope types
6870
"char": "character",
6971
"word": "word",

0 commit comments

Comments
 (0)