https://github.com/c-loftus/colton_talon
Supplementary scripts to Talon Community (Knausj)
https://github.com/c-loftus/colton_talon
knausj talon talonvoice
Last synced: 3 months ago
JSON representation
Supplementary scripts to Talon Community (Knausj)
- Host: GitHub
- URL: https://github.com/c-loftus/colton_talon
- Owner: C-Loftus
- License: gpl-3.0
- Created: 2022-01-13T02:31:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T12:54:26.000Z (8 months ago)
- Last Synced: 2025-03-16T16:43:50.183Z (3 months ago)
- Topics: knausj, talon, talonvoice
- Language: Python
- Homepage:
- Size: 682 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My Talon Scripts
My scripts are supplementary to the standard community repo on the most recent release and work without any forking.
# Functionality
- Send custom JS/TS to the browser from within Talon
- Operate a pedal with custom overrides and multiple presses at once
- Pandoc via voice for office use (converting between word docs/slides/etc.)
- Various config and helper actions
- Voice commands for updating the entire Talon user directory
- and more!## Git Helpers for Extracting Specific Code from this Repo
- View History of a Given File: [https://github.githistory.xyz](https://github.githistory.xyz)
# Notes
Talon is not like a traditional Python environment. Stylization and code choices in this repo reflect that
- When Talon is loaded, all Python files in the Talon user directory are all ran at startup.
- We do not have an exposed central `main()` function from which to enter our scripts
- Python scripts which define voice commands are _not_ intended to be exported to other Python functions through `import`.
- Any shared Python code is defined in specific helper modules and separated from voice command definitions.
- `global` variables are actually a _good_ practice for keeping state in Talon becuase of the fact each file defines voice commands that are only called from `.talon` scripts which don't have access to these `global` variables.
- `global` is a simple way of sharing state across all related functions in one particular file, since we don't want to have to manually pass in state arguments through voice each time. It is easier to simply set it for an entire group of related commands.
- For more complicated state that can be shared across many voice commands, Talon provides modules, tags, and scopes, all of which expose state to `.talon` scripts.# Acknowledgements
[https://github.com/AndreasArvidsson/andreas-talon/](https://github.com/AndreasArvidsson/andreas-talon/)