keyboard – Intercept keystroke sequence and return program stdout? (e.g. “ddd” -> `date -I`)


I find out about textual content shortcuts in Mac OS System Preferences for the Keyboard that may change enter sequences with static textual content (e.g jd turns into John Doe). And these are helpful.

However is there a solution to obtain the identical factor with dynamic output (possibly generated by a easy shell command)

I continuously must insert in the present day’s date when writing notes in numerous apps. If I might convert ddd to sh -c "date -I" in order that it inputs in the present day’s date, that may be nice.

I do know I can do that with particular person apps (e.g. BBEdit, E-mail, Terminal) however is there a system huge solution to obtain this? I am hoping there is a device that may intercept system occasions and invoke executables.