forked from talonhub/community
-
-
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 my main branch with knausj main branch
- Loading branch information
Showing
60 changed files
with
918 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
os: windows | ||
app.exe: ConEmu64.exe | ||
app.exe: /^conemu64\.exe$/i | ||
- | ||
|
||
tag(): terminal | ||
|
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
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,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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# core | ||
|
||
This folder contains `edit_settings.talon`, which has a command to open various [settings](https://github.com/talonhub/community?tab=readme-ov-file#settings) files. As an overview of what commands the subfolders contain: | ||
|
||
- `abbreviate` has a command for the use of abbreviations | ||
- `app_switcher` does not have commands but has the implementation of functions that allow for switching between applications | ||
- `edit` has commands for navigating and editing text with copy, paste, etc., as well as commands for zooming in and out | ||
- `file_extension` has a command for simpler spoken forms of file and website name extensions | ||
- `help` has commands to open various help menus, as described in the top level [README](https://github.com/talonhub/community?tab=readme-ov-file#getting-started-with-talon) | ||
- `homophones` has commands to replace words with their homophones | ||
- `keys` has commands for [pressing keys](https://github.com/talonhub/community?tab=readme-ov-file#keys) | ||
- `modes` has commands for switching between dictation, command, and sleep mode, as well as for forcing a certain [programming language](https://github.com/talonhub/community?tab=readme-ov-file#programming-languages) mode | ||
- `mouse_grid` has commands to use a grid on the screen to click at a specific location | ||
- `numbers` has the command for writing a number | ||
- `screens` has a command for talon to show the index associated with each of your computer screens for the sake of moving windows to different screens | ||
- `snippets` has commands for inserting snippets of code for various languages | ||
- `text` has commands for inserting and reformatting text | ||
- `vocabulary` has commands for adding new words to be recognized and for having certain words automatically by replaced by others | ||
- `websites_and_search_engines` has commands for opening websites, following links, and making browser searches | ||
- `windows_and_tabs` has commands for tab and [window management](https://github.com/talonhub/community?tab=readme-ov-file#window-management), launching and switching between different applications, and snapping application windows to different locations on the screen |
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,3 +1,4 @@ | ||
Spoken form, App name (or list an app name by itself on a line to exclude it) | ||
grip, DataGrip | ||
py, jetbrains-pycharm-ce | ||
terminal, Gnome-terminal |
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,3 +1,4 @@ | ||
Spoken form, App name (or list an app name by itself on a line to exclude it) | ||
grip, DataGrip | ||
term, iTerm2 | ||
one note, ONENOTE |
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.