How can I execute a specific command automatically, when the cursor rests for a while?
During a correction phase of my project I very frequently run a grep on the word the cursor currently positioned on. I already found a great enhancement in Grep-o-Matic, which lets me execute a grep of the current word in my git repository. After re-assigning grep-o-matic-repository
to F-12
I can execute the grep with one keystroke.
But maybe I could spare even this additional keystroke? I am thinking of a combination with something that wuould almost feel like the ispell-mode: When the cursor rests for, say, 500ms then the grep-o-matic-repository
should be executed automatically.
As a final tweak the top 4 lines in the result windows should be removed, but that's a bonus I can probably attack later.