Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ max_line_length = 80
trim_trailing_whitespace = true

[*.{py,talon}]
indent_style = space
indent_size = 4

[*.talon]
preserve_multiline = true

[*.svg]
insert_final_newline = false

Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ repos:
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/cursorless-dev/talon-tools
rev: v0.1.9
hooks:
- id: talon-fmt
- id: tree-sitter-fmt

- repo: https://github.com/lunarmodules/luacheck
rev: v1.2.0
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ list: user.cursorless_launch_configuration
app: vscode
win.title: /cursorless/
-

extension: "VSCode: Run"
test: "VSCode: Test"
test subset: "VSCode: Test (subset)"
Expand Down
8 changes: 5 additions & 3 deletions cursorless-talon-dev/src/cursorless_test.talon
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test api insert <user.word> and <user.word> <user.cursorless_destination>:

test api insert snippet:
user.cursorless_insert_snippet("Hello, $foo! My name is $bar!")
test api insert snippet <user.cursorless_destination> :
test api insert snippet <user.cursorless_destination>:
user.cursorless_insert_snippet("Hello, $foo! My name is $bar!", cursorless_destination, "statement")
test api wrap with snippet <user.cursorless_target>:
user.cursorless_wrap_with_snippet("Hello, $foo! My name is $bar!", cursorless_target, "foo", "statement")
Expand All @@ -33,8 +33,10 @@ test api alternate highlight nothing:
user.private_cursorless_test_alternate_highlight_nothing()

test api parsed chuck block: user.cursorless_x_custom_command("chuck block")
test api parsed take next token: user.cursorless_x_custom_command("take next token")
test api parsed change next instance: user.cursorless_x_custom_command("change next instance")
test api parsed take next token:
user.cursorless_x_custom_command("take next token")
test api parsed change next instance:
user.cursorless_x_custom_command("change next instance")
test api parsed <user.cursorless_target>:
user.cursorless_x_custom_command("chuck block <target>", cursorless_target)
test api parsed <user.cursorless_target> plus <user.cursorless_target>:
Expand Down
Loading