init commit

This commit is contained in:
unknown
2025-08-19 08:06:37 -04:00
commit 2957b5515a
743 changed files with 45495 additions and 0 deletions
@@ -0,0 +1,30 @@
import time
from talon import Context, Module, actions, settings
ctx = Context()
mod = Module()
mod.tag("pop_twice_to_repeat", desc="tag for enabling pop twice to repeat")
ctx.matches = r"""
mode: command
and tag: user.pop_twice_to_repeat
"""
time_last_pop = 0
@ctx.action_class("user")
class UserActions:
def noise_trigger_pop():
# Since zoom mouse is registering against noise.register("pop", on_pop), let that take priority
if actions.tracking.control_zoom_enabled():
return
global time_last_pop
delta = time.perf_counter() - time_last_pop
double_pop_speed_minimum = settings.get("user.double_pop_speed_minimum")
double_pop_speed_maximum = settings.get("user.double_pop_speed_maximum")
if delta >= double_pop_speed_minimum and delta <= double_pop_speed_maximum:
actions.core.repeat_command()
time_last_pop = time.perf_counter()
+8
View File
@@ -0,0 +1,8 @@
# -1 because we are repeating, so the initial command counts as one
<user.ordinals>: core.repeat_command(ordinals - 1)
<number_small> times: core.repeat_command(number_small - 1)
(repeat that | twice): core.repeat_command(1)
repeat that <number_small> [times]: core.repeat_command(number_small)
(repeat phrase | again) [<number_small> times]:
core.repeat_partial_phrase(number_small or 1)