im making a program that includes some commands, lets say rm the goal was to be able to run the rm~ without pressing enter, waiting for some time is importance since while wafting we show all the possible commands with that name, lets say rmq that does something
my first idea was to have a global timer, and it will basically wait for a duration and when the delay is enough it will run what ever is in the buffer, now the on_click handler will reset the timer to 0 but im worrying about race conditions