talonhub / community

Voice command set for Talon, community-supported.
MIT License
624 stars 779 forks source link

several desktop commands do not work on windows #823

Open tararoys opened 2 years ago

tararoys commented 2 years ago

in \knausj_talon\misc\desktops.talon

on Windows 10: 'desk two' does not work. Command registers, nothing happens. no errors appear in log

main | engine.phrase desk two
talon_plugins.subtitles | action speech.enabled()
user\knausj_talon\apps\vscode\command_client\command_client.py | action user.emit_pre_phrase_signal()
user\knausj_talon\code\history.py | action user.history_transform_phrase_text(['desk', 'two'])
user\knausj_talon\code\history.py | action speech.enabled()
user\talon_hud\reloader.py | action sound.active_microphone()
main | action core.run_phrase(C(None, desk 2))
core | action core.run_command(CommandImpl(Rule("desk <number_small>")), C(__desk___ltnumber_5fsmall_gt__, desk 2))
core | action core.run_talon_script(ResourceContext("user.knausj_talon.misc.desktops.talon"), TalonScript(code='# change the current desktop\nuser.desktop(number_small)'), C(__desk___ltnumber_5fsmall_gt__, desk 2))
user\knausj_talon\misc\desktops.talon | action user.desktop(2)
'window move desk two' does not work.  Command registers, nothing happens.  No errors appear in log
main | engine.phrase window move desk two
talon_plugins.subtitles | action speech.enabled()
user\knausj_talon\apps\vscode\command_client\command_client.py | action user.emit_pre_phrase_signal()
user\knausj_talon\code\history.py | action user.history_transform_phrase_text(['window', 'move', 'desk', 'two'])
user\knausj_talon\code\history.py | action speech.enabled()
user\talon_hud\reloader.py | action sound.active_microphone()
main | action core.run_phrase(C(None, window move desk 2))
core | action core.run_command(CommandImpl(Rule("window move desk <number>")), C(__window__move__desk___ltnumber_gt__, window move desk 2))
core | action core.run_talon_script(ResourceContext("user.knausj_talon.misc.desktops.talon"), TalonScript(code='# move the current window to a different desktop.\nuser.window_move_desktop(number)'), C(__window__move__desk___ltnumber_gt__, window move desk 2))
user\knausj_talon\misc\desktops.talon | action user.window_move_desktop(2)

'window move desk left` does not work. Command registers, nothing happens.

main | engine.phrase window moved desk left
talon_plugins.subtitles | action speech.enabled()
user\knausj_talon\apps\vscode\command_client\command_client.py | action user.emit_pre_phrase_signal()
user\knausj_talon\code\history.py | action user.history_transform_phrase_text(['window', 'moved', 'desk', 'left'])
user\knausj_talon\code\history.py | action speech.enabled()
user\talon_hud\reloader.py | action sound.active_microphone()
main | action core.run_phrase(C(None, window moved desk left))
core | action core.run_command(CommandImpl(Rule("<phrase>")), C(___ltphrase_gt__, window moved desk left))
core | action core.run_talon_script(ResourceContext("user.knausj_talon.modes.sleep_mode_wav2letter.talon"), TalonScript(code='skip()'), C(___ltphrase_gt__, window moved desk left))
user\knausj_talon\modes\sleep_mode_wav2letter.talon | action skip()
talon_plugins.subtitles | action speech.enabled()

'window move desk right`

main | engine.phrase window moved ask right
talon_plugins.subtitles | action speech.enabled()
user\knausj_talon\apps\vscode\command_client\command_client.py | action user.emit_pre_phrase_signal()
user\knausj_talon\code\history.py | action user.history_transform_phrase_text(['window', 'moved', 'ask', 'right'])
user\knausj_talon\code\history.py | action speech.enabled()
user\talon_hud\reloader.py | action sound.active_microphone()
main | action core.run_phrase(C(None, window moved ask right))
core | action core.run_command(CommandImpl(Rule("<phrase>")), C(___ltphrase_gt__, window moved ask right))
core | action core.run_talon_script(ResourceContext("user.knausj_talon.modes.sleep_mode_wav2letter.talon"), TalonScript(code='skip()'), C(___ltphrase_gt__, window moved ask right))
user\knausj_talon\modes\sleep_mode_wav2letter.talon | action skip()
talon_plugins.subtitles | action speech.enabled()
rntz commented 1 year ago

The latter two examples seem to be in sleep mode; that's window move desk left/right. The first two are at least parsing as if in command mode, though.