question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FEATURE: modular structure for adding APPS into TalonVoice framework

See original GitHub issue

The app folder structure as refactored by @knausj85 in bba1b56 for VSCODE is a step in the right direction for maintainability and extending. 🥇 updated from discussions below

app
  /<MYAPP>
            <MYAPP>.<OS>.talon  (implementation code - where <OS> is linux | mac | win)
            <MYAPP>.py (talon support python code for MYAPP)
            <MYAPP>.talon (Voice Commands for  MYAPP)

I still believe platform differences could be managed in 1 file, reducing the amount of duplicate work in building support for a cross platform app. This will however need extending the talon syntax to enable a line in the talon file to apply or be exempt from a specific platform context.

Additionally, the support, maintenance and monolithic nature of where this repository is heading should at some point be considered. It seems a huge task for this one repo to hold all commands for all conceivable applications. . It is also conceivable a user does not want a blotted command set but wants to pick and choose modules. The above structure that was introduced is in my opinion a great step forward. Together with some guidelines it will enable building on top of the great work the core of this repository has introduced with the awesome TalonVoice by @lunixbochs

my intent with this issue is a place holder FEATURE discussion around appropriate structuring

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
knausj85commented, Jun 4, 2020

yeah, i moved the relevant .py for vscode into apps/vscode too, so that’s where we’re headed.

1reaction
knausj85commented, Jun 3, 2020

Long term, I believe the plan is a package management/plugin system in talon of some sort, so starting from a huge repository like this won’t be a thing, fwiw.

I’ll definitely consolidate Talon files where possible if/when that’s implemented.

I won’t accept all PRs; I am more likely to accept PRs for more specific contexts. The less specific the context, the more selective I’ll be.

I generally prefer a flatter folder structure. vscode is probably the direction I’ll slowly move things. I’d like to get rid of the platform subfolders, but that can probably wait until the consolidation.

WIP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unofficial Talon Docs - the Talon Community Wiki
Unofficial Talon Docs. This page provides community documentation of the central concepts used for the customization of Talon behaviour. If you want to...
Read more >
Talon: In-Depth Review
I'm writing this post with Conformer. In addition to speech recognition, Talon includes support for noise recognition, custom keyboard shortcuts ...
Read more >
Talon 0.2.1.0 documentation
Talon is very modular and adaptable - you can use eye tracking without speech ... Add some scripts to ~/.talon/user to add voice...
Read more >
Best practices for a modularized app with dynamic features
Due to the monolithic-like structure, it caused a bad performance on ... In addition, the proportion of the app module in the project...
Read more >
Getting Started with Voice Driven Development
A beginner's guide to voice coding with Talon. ... is the API (what is an API) that allows building hands-free functionality using Python....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found