forked from talonhub/community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:talonhub/community
* 'main' of github.com:talonhub/community: (23 commits) Add menu choosing helper from pokey_talon (talonhub#1393) Delete dead Windows-specific code (talonhub#1441) Add space after Kotlin keywords so that you can chain in keyword commands (talonhub#1429) Creates the "find" tag and removes that functionality from "find_and_replace" (talonhub#1404) More emacs commands, including xref commands (go-to-definition) (talonhub#1443) allow "help last" as synonym for "help previous" (talonhub#1444) imperative: Add `state match` alias for Python/Rust (talonhub#1440) Get vscode.py to recognize cursor IDE for macos (talonhub#1436) Update talonfmt (talonhub#1434) micro-optimization for dictation_insert (talonhub#1422) [pre-commit.ci] pre-commit autoupdate (talonhub#1417) define "zoom reset" for VSCode (talonhub#1420) Get snippets actions (talonhub#1315) Add basic kotlin support (talonhub#1408) [pre-commit.ci] pre-commit autoupdate (talonhub#1413) Support for Foxit Reader for PDFs (talonhub#1403) Meld (talonhub#1402) Add vscode command to search for views by name (talonhub#1390) Talon v0.4 support: common commands for talon python / talon files / .talon-list files (talonhub#1240) [pre-commit.ci] pre-commit autoupdate (talonhub#1389) ...
- Loading branch information
Showing
55 changed files
with
852 additions
and
146 deletions.
There are no files selected for viewing
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,64 @@ | ||
from talon import Context, Module, actions | ||
|
||
mod = Module() | ||
ctx = Context() | ||
|
||
# --- App definition --- | ||
mod.apps.foxit_reader = r""" | ||
os: windows | ||
and app.name: /^Foxit Reader/ | ||
os: windows | ||
and app.exe: /^foxitreader\.exe$/i | ||
os: windows | ||
and app.name: Foxit PDF Reader | ||
os: windows | ||
and app.exe: /^foxitpdfreader\.exe$/i | ||
""" | ||
# Context matching | ||
ctx.matches = """ | ||
app: foxit_reader | ||
""" | ||
|
||
|
||
@ctx.action_class("app") | ||
class AppActions: | ||
# app.tabs | ||
def tab_open(): | ||
actions.key("ctrl-o") | ||
|
||
def tab_reopen(): | ||
actions.app.notify("Foxit does not support this action.") | ||
|
||
|
||
@ctx.action_class("user") | ||
class UserActions: | ||
# user.tabs | ||
def tab_jump(number): | ||
actions.app.notify("Foxit does not support this action.") | ||
|
||
def tab_final(): | ||
actions.app.notify("Foxit does not support this action.") | ||
|
||
def tab_duplicate(): | ||
actions.app.notify("Foxit does not support this action.") | ||
|
||
# user.pages | ||
def page_current() -> int: | ||
actions.key("ctrl-g") | ||
page = actions.edit.selected_text() | ||
return int(page) | ||
|
||
def page_next(): | ||
actions.key("right") | ||
|
||
def page_previous(): | ||
actions.key("left") | ||
|
||
def page_jump(number: int): | ||
actions.key("ctrl-g") | ||
actions.insert(str(number)) | ||
actions.key("enter") | ||
|
||
def page_final(): | ||
# actions.key("fn-right") | ||
actions.key("end") |
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,11 @@ | ||
app: foxit_reader | ||
- | ||
tag(): user.tabs | ||
tag(): user.pages | ||
|
||
tab close all: key(ctrl-shift-w) | ||
|
||
[page] rotate right: key("shift-ctrl-keypad_equals") | ||
[page] rotate left: key("shift-ctrl-keypad_minus") | ||
|
||
go back: key(alt-left) |
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,44 @@ | ||
from talon import Context, Module, actions | ||
|
||
mod = Module() | ||
ctx = Context() | ||
|
||
apps = mod.apps | ||
apps.meld = """ | ||
os: windows | ||
and app.name: Visual diff and merge tool | ||
os: windows | ||
and app.exe: meld.exe | ||
""" | ||
|
||
ctx.matches = r""" | ||
app: meld | ||
""" | ||
|
||
|
||
@ctx.action_class("app") | ||
class AppActions: | ||
def tab_open(): | ||
actions.key("ctrl-n") | ||
|
||
def tab_previous(): | ||
actions.key("ctrl-alt-pageup") | ||
|
||
def tab_next(): | ||
actions.key("ctrl-alt-pagedown") | ||
|
||
def tab_reopen(): | ||
print("Meld does not support this action.") | ||
|
||
|
||
@ctx.action_class("user") | ||
class UserActions: | ||
def tab_jump(number): | ||
if number < 10: | ||
actions.key(f"alt-{number}") | ||
|
||
def tab_final(): | ||
print("Meld does not support this action.") | ||
|
||
def tab_duplicate(): | ||
print("Meld does not support this action.") |
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 @@ | ||
app: meld | ||
- | ||
tag(): user.tabs | ||
|
||
change next: key(alt-down) | ||
change (previous | last): key(alt-up) |
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,16 @@ | ||
# this functionality is only available in the talon beta | ||
from talon import Module | ||
|
||
mod = Module() | ||
mod.apps.talon_debug_window = """ | ||
os: mac | ||
and app.bundle: com.talonvoice.Talon | ||
win.title: Talon Debug | ||
""" | ||
mod.apps.talon_debug_window = """ | ||
os: windows | ||
and app.name: Talon | ||
os: windows | ||
and app.exe: talon.exe | ||
win.title: Talon Debug | ||
""" |
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,24 @@ | ||
# this functionality is only available in the talon beta | ||
# note: these commands are only useful when the search box is focused | ||
app: talon_debug_window | ||
- | ||
# uncomment user.talon_populate_lists tag to activate talon-specific lists of actions, scopes, modes etcetera. | ||
# Do not enable this tag with dragon, as it will be unusable. | ||
# with conformer, the latency increase may also be unacceptable depending on your cpu | ||
# see https://github.com/talonhub/community/issues/600 | ||
# tag(): user.talon_populate_lists | ||
|
||
tag {user.talon_tags}: "{talon_tags}" | ||
|
||
#commands for dictating key combos | ||
key <user.keys> over: "{keys}" | ||
key <user.modifiers> over: "{modifiers}" | ||
|
||
action {user.talon_actions}: "{talon_actions}" | ||
# requires user.talon_populate_lists tag. do not use with dragon | ||
list {user.talon_lists}: "{talon_lists}" | ||
|
||
# requires user.talon_populate_lists tag. do not use with dragon | ||
capture {user.talon_captures}: "{talon_captures}" | ||
set {user.talon_settings}: "{talon_settings}" | ||
application {user.talon_apps}: "{talon_apps}" |
File renamed without changes.
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
Oops, something went wrong.