forked from cursorless-dev/cursorless
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
193 changed files
with
4,742 additions
and
695 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @pokey | ||
* @pokey @AndreasArvidsson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
tags: [enhancement, talon] | ||
pullRequest: 1900 | ||
--- | ||
|
||
- Added optional second target to action `call` to specify argument. eg: `"call air on bat"`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
tags: [enhancement, talon] | ||
pullRequest: 1875 | ||
mergeDate: 2023-09-10 | ||
--- | ||
|
||
- Added `cursorless_insert` action to the public Talon api. This api enables you to define custom grammars for Cursorless text insertion. See the [talon-side api docs](https://www.cursorless.org/docs/user/customization/#public-talon-actions) for more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
from talon import actions | ||
from talon import Module, actions | ||
|
||
from ..targets.target_types import CursorlessTarget, ImplicitTarget | ||
|
||
mod = Module() | ||
mod.list("cursorless_call_action", desc="Cursorless call action") | ||
|
||
def cursorless_call_action(target: CursorlessTarget): | ||
actions.user.private_cursorless_command_and_wait( | ||
{ | ||
"name": "callAsFunction", | ||
"callee": target, | ||
"argument": ImplicitTarget(), | ||
} | ||
) | ||
|
||
@mod.action_class | ||
class Actions: | ||
def private_cursorless_call( | ||
callee: CursorlessTarget, | ||
argument: CursorlessTarget = ImplicitTarget(), | ||
): | ||
"""Execute Cursorless call action""" | ||
actions.user.private_cursorless_command_and_wait( | ||
{ | ||
"name": "callAsFunction", | ||
"callee": callee, | ||
"argument": argument, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
from talon import actions | ||
|
||
from ..targets.target_types import CursorlessTarget, PrimitiveDestination | ||
from ..targets.target_types import CursorlessDestination | ||
|
||
|
||
def cursorless_replace_action(target: CursorlessTarget, replace_with: list[str]): | ||
def cursorless_replace_action( | ||
destination: CursorlessDestination, replace_with: list[str] | ||
): | ||
"""Execute Cursorless replace action. Replace targets with texts""" | ||
actions.user.private_cursorless_command_and_wait( | ||
{ | ||
"name": "replace", | ||
"replaceWith": replace_with, | ||
"destination": PrimitiveDestination("to", target), | ||
"destination": destination, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.