dotfiles/talon/user/community/plugin/talon_helpers/talon_helpers.talon

61 lines
2.3 KiB
Text

talon check updates: menu.check_for_updates()
# the debug window is only available in the talon beta
talon open debug: menu.open_debug_window()
talon open log: menu.open_log()
talon open rebel: menu.open_repl()
talon home: menu.open_talon_home()
talon copy context pie: user.talon_add_context_clipboard_python()
talon copy context: user.talon_add_context_clipboard()
talon copy name:
name = app.name()
clip.set_text(name)
talon copy executable:
executable = app.executable()
clip.set_text(executable)
talon copy bundle:
bundle = app.bundle()
clip.set_text(bundle)
talon copy title:
title = win.title()
clip.set_text(title)
talon dump version:
result = user.talon_version_info()
print(result)
talon insert version:
result = user.talon_version_info()
user.paste(result)
talon dump context:
result = user.talon_get_active_context()
print(result)
^talon test last$:
phrase = user.history_get(1)
user.talon_sim_phrase(phrase)
^talon test numb <number_small>$:
phrase = user.history_get(number_small)
user.talon_sim_phrase(phrase)
^talon test <phrase>$: user.talon_sim_phrase(phrase)
^talon debug action {user.talon_actions}$:
user.talon_action_find("{user.talon_actions}")
^talon debug list {user.talon_lists}$: user.talon_debug_list(talon_lists)
^talon copy list {user.talon_lists}$: user.talon_copy_list(talon_lists)
^talon debug tags$: user.talon_debug_tags()
^talon debug modes$: user.talon_debug_modes()
^talon debug scope {user.talon_scopes}$: user.talon_debug_scope(talon_scopes)
^talon debug setting {user.talon_settings}$: user.talon_debug_setting(talon_settings)
^talon debug all settings$: user.talon_debug_all_settings()
^talon debug active app$:
result = user.talon_get_active_application_info()
print("**** Dumping active application **** ")
print(result)
print("***********************")
^talon copy active app$:
result = user.talon_get_active_application_info()
clip.set_text(result)
^talon create app context$: user.talon_create_app_context()
^talon create windows app context$: user.talon_create_app_context("win")
^talon create linux app context$: user.talon_create_app_context("linux")
^talon create mac app context$: user.talon_create_app_context("mac")
talon (bug report | report bug):
user.open_url("https://github.com/talonhub/community/issues")