Missing explicit voice command to write private function
See original GitHub issueCurrently the only way to call code_private_function
is indirectly via code_default_function
(except for R).
This poses a few problems:
- Python and Scala override
code_default_function
to callcode_public_function
. This currently makes it impossible to use theircode_private_function
implementations without adding a custom voice command. - The Java implementation of
code_protected_function
creates a method without any modifiers, which is confusing.- It should insert the
protected
access modifier, but then there would be no way to insert a method with no access modifiers (i.e. a package-private method, distinct fromprotected
). - As a workaround, one can say
state protected
, pause, thenpro funky ...
, but this is clearly inconsistent and disrupts the flow.
- It should insert the
I would like to propose the following:
- a new
private funky <text>
command, which callscode_private_function
- a new action
code_default_static_function
, to be called bystatic funky <text>
, can default to callingcode_private_static_function
- a new
private static funky <text>
command, to replace current usage ofstatic funky <text>
This would allow for:
- Java: creating methods with all possible access modifiers (including package-private and
protected
) using the commands infunctions.talon
- TypeScript: creating functions outside methods, whilst still being able to create private methods (see also #824)
- Python/Scala: actually creating private functions
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Use Voice Control to interact with iPhone - Apple Support
Control iPhone with your voice. Speak commands to perform gestures, interact with screen elements, dictate and edit text, and more.
Read more >Speech, voice activation, inking, typing, and privacy
Learn more about the privacy settings for speech, voice activation, inking, and typing in Windows.
Read more >Troubleshoot Voice Access - Android Accessibility Help
If Voice Access doesn't recognize your voice commands, try the following: Make sure that your device is connected to the Internet over cellular...
Read more >SENG 440: Lecture 16 – Camera, Part 2 - teaching machines
We will allow the user to advance the day by speaking “next” or “previous.” This feature will be an artificial appendage for our...
Read more >Klymaxx - Private Party - YouTube
Best of Klymaxx: https://goo.gl/QEYkmTSubscribe here: https://goo.gl/2vDd9jMusic video by Klymaxx performing Private Party.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be covered off by #879 . Closing issue.
What might be nice is the following:
Then there could be a default implementation
Individual languages could then override the implementation to look at
modifier_list
and choose a different formatter / use different template for the functionDefinitely a different approach, but figured I’d throw it out there.
It is related to #807