Skip to content

Commit

Permalink
Added reformat action to public api (#2358)
Browse files Browse the repository at this point in the history
## Checklist

- [/] 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: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 8978c29 commit 71e9fd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/reformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@mod.action_class
class Actions:
def private_cursorless_reformat(
def cursorless_reformat(
target: CursorlessExplicitTarget, # pyright: ignore [reportGeneralTypeIssues]
formatters: str,
):
Expand Down
2 changes: 1 addition & 1 deletion src/cursorless.talon
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tag: user.cursorless
user.private_cursorless_paste(cursorless_destination)

{user.cursorless_reformat_action} <user.formatters> at <user.cursorless_target>:
user.private_cursorless_reformat(cursorless_target, formatters)
user.cursorless_reformat(cursorless_target, formatters)

{user.cursorless_call_action} <user.cursorless_target> on <user.cursorless_target>:
user.private_cursorless_call(cursorless_target_1, cursorless_target_2)
Expand Down

0 comments on commit 71e9fd6

Please sign in to comment.